Skip to content

A cli tool, git clone repository in the `go get` style.

License

Notifications You must be signed in to change notification settings

WindomZ/gitclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitclone

Build Status Go Report Card License

A cli tool, git clone repository in the go get style.

v0.7.0 status

Features

  • gitclone - git clone repository in the go get style
  • gitclone list - prints a list of repositories witch in the current directory
  • gitclone search - search repositories witch in current directory
  • gitclone link - gitclone a repository from the directory to current directory

Install

To install cli, run:

$ go get github.com/WindomZ/gitclone

Make sure your PATH includes the $GOPATH/bin directory, if NOT you can run:

export PATH=$PATH:$GOPATH/bin

Usage

$ gitclone -h

  A cli tool, git clone repository in the `go get` style.

  Usage:
    gitclone (list|ls)
    gitclone search <key>
    gitclone link <filepath>
    gitclone <repo> [--depth=<depth>]
    gitclone -h|--help
    gitclone -v|--version

  Options:
    -h --help     output usage information
    -v --version  output the version number

  Commands:
    list|ls       prints a list of repositories witch in the current directory
    search        search repositories witch in current directory
    link          `gitclone` a repository from the directory to current directory

git clone(or git pull) this repo(github.com/WindomZ/gitclone), simply run:

gitclone https://github.com/WindomZ/gitclone.git

finally, get the directory structure:

|- .
|- ..
|- github.com
|  - WindomZ
|     - gitclone

If with --depth=2,

gitclone https://github.com/WindomZ/gitclone.git --depth=2

then get the directory structure:

|- .
|- ..
|- WindomZ
|  - gitclone

PowerBy

go-commander - The solution for building command shell programs

Related

WindomZ/gitget - Written in Node.js

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss gitclone, i would love to hear what you think about gitclone on issues page.

If you like it then you can put a ⭐ on it.

License

MIT

About

A cli tool, git clone repository in the `go get` style.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages