Every time, when I wanted to clone new project via git, I need to go my GOPATH folder and create sub-folders.
I need to clone: git@github.com:vxxvvxxv/go-git-clone.git
My steps:
- Go to GOPATH folder, ex.:
cd ~/go/src - Create new folder:
mkdir github.com && cd github.com - Create owner folder:
mkdir vxxvvxxv && cd vxxvvxxv - Clone new project:
git clone git@github.com:vxxvvxxv/go-git-clone.git
I want just run: go-git-clone git@github.com:vxxvvxxv/go-git-clone.git
This app, check and to create folders, and run git clone <url>.
go install github.com/vxxvvxxv/go-git-clone@latestgo-git-clone git@github.com:vxxvvxxv/go-git-clone.git