Skip to content

Latest commit

 

History

History
99 lines (75 loc) · 2.6 KB

README.md

File metadata and controls

99 lines (75 loc) · 2.6 KB

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