1.1.1 • Published 3 years ago

gogogit v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Git setup helper a.k.a gogogit, a.k.a ggg

Helper for setup git repo locally via SSH:

  • Creates SSH-key
  • Edits SSH config with necessary settings for profile
  • Clones Git repo
  • Sets up user name and email in repository

Installation

  1. Open (or create) file ~/.ssh/config, for example with VSCode:
$ code ~/.ssh/config
  1. Copy content of ssh_config_header into the opened file.
  2. Save ggg file onto your home directory.
  3. Add alias Run in shell
$ ALIAS_CMD='alias ggg="~/ggg"'; grep "$ALIAS_CMD" ~/.bashrc || echo "$ALIAS_CMD" >> ~/.bashrc; source ~/.bashrc; chmod 0777 ~/ggg

Usage

  1. Just
$ ggg

That's all! Now just follow instructions on the screen.

  1. With specified parameters
$ ggg <email> <repository_link_or_command>

If a repo cloning command contains spaces - put it in quotes! For example:

$ ggg developer@gmail.com "git clone https://github.com/facebook/react.git"

or just

$ ggg developer@gmail.com https://github.com/facebook/react.git
  1. Check help for more details
$ ggg --help
1.1.1

3 years ago