Git automate is a convenient time-saving tool which automatically creates both a local repo on the client side and a remote repo on Github.
- Navigates to folder with python script
- Creates a folder with project name
- Navigates into folder
- git init
- Goes to GitHub and creates a new repository (start private)
- Copies the remote repo ssh
- Adds a remote to the local folder
- Creates a README file
- Git add .
- Git commit
- Git push -u origin master
- Code .
- Add source function to .zshrc or .bash_profile
- You can either clone it via github or fork it.
- Open
git-automate.shfile - Edit line 1 to allow access to either zsh/bash/exe file
- Change the file path
- Save and run
Program is executed using the command create repo_name
Remember to make the shell script executable by running chmod +x git-automate.sh.
In the .bash_profile or .zshrc file in root directory add the following line to the file:
source ~/path/to/git-automate.sh