- 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.
- Clone this repository.
- 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
- (Optional) Add an alias of your choosing to your rc to make interacting with the CLI quicker.
alias gcf='git_clone_find'
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.
- Make your changes.
- Run
make lint
to lint your changes andmake test
to test them. - Add the appropriate tests.
- Create a PR.