kvendrik / git_clone_find

πŸ” Finds Git repositories, clones them and moves into the folder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git_clone_find

CircleCI

  • Git clones and moves into the folder.
  • Allows for simple username/repo_name syntax to clone (with Github).
  • Allows for only a repo_name which will make it search through all your configured Github usernames.

Setup

  1. Clone this repository.
  2. In your local rc file export all your preferred Github usernames (see help message) and source git_clone_find.
export GCF_GITHUB_USERNAMES=('kvendrik' 'my_org1' 'my_org2')
source path_to_this_repo/git_clone_find
  1. (Optional) Add an alias of your choosing to your rc to make interacting with the CLI quicker.
alias gcf='git_clone_find'

Help

Usage: git_clone_find [-v|--verbose|-h|--help] <ssh_url_or_repo_name> [<folder_name>]

Finds Git repositories, clones them and moves into the folder.

Flags:

  -h | --help                  Display this help message
  -v | --verbose               Verbose mode

Arguments:
  
  ssh_url_or_repo_name:        A SHH clone URL, repository name (will search through your set GCF_GITHUB_USERNAMES)
                               or repository identifier (e.g. kvendrik/dotfiles)
  folder_name:                 Name of the folder it should clone into. Defaults to the name of the repository.

πŸ— Contibuting

  1. Make your changes.
  2. Run make lint to lint your changes and make test to test them.
  3. Add the appropriate tests.
  4. Create a PR.

About

πŸ” Finds Git repositories, clones them and moves into the folder.


Languages

Language:Shell 98.1%Language:Makefile 1.9%