gogit

package module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 10 Imported by: 0

README

Gogit

Github top language Github language count Repository size License


🎯 About

gogit makes copies of git repositories.This is much quicker than using git clone, because you're not downloading the entire git history.

🚀 Technologies

The following tools were used in this project:

🏁 Starting

# Install gogit
$ go install github.com/extendswork/gogit/cmd/gogit

Default git server GitHub is used. In addition, you can use Gitlab and Bitbucket. You can download release versions and versioned versions

# Start gogit
gogit user/repo my-project
gogit github:user/repo my-project
gogit github:user/repo#v1.0.0 my-project
gogit github:user/repo#master my-project

gogit gitlab:user/repo my-project
gogit gitlab:user/repo#v1.0.0 my-project
gogit gitlab:user/repo#master my-project

gogit bitbucket:user/repo my-project
gogit bitbucket:user/repo#v1.0.0 my-project
gogit bitbucket:user/repo#master my-project

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤ by Extends Work

 

See also

Documentation

Index

Constants

View Source
const Bitbucket string = "https://bitbucket.org/"
View Source
const Github string = "https://github.com/"
View Source
const Gitlab string = "https://gitlab.com/"

Variables

This section is empty.

Functions

func Untar

func Untar(r io.Reader) error

Types

type Git

type Git struct {
	Host string
	User string
	Repo string
	Type string
	File string
}

func New

func New() *Git

func (*Git) Download

func (git *Git) Download(path string) error

func (*Git) Extract

func (git *Git) Extract(dir string) error

func (*Git) GetURL

func (git *Git) GetURL() (string, error)

func (*Git) Parser

func (git *Git) Parser(url string) error

func (*Git) Run

func (git *Git) Run(prefix string, dir string)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL