- This implementation is geared towards being used as a function in a .zshrc file
- This implements the GitHub API and some basic terminal commands to make automation smooth
- This function does the the following:
- Create new directory and navigates into it
- Prompts the user for a description for the GitHub repository
- Creates GitHub repository with the name given in the command
- Creates a README
- Initialises a repository
- Adds and commits that README
- Adds the remote origin repository
- Pushes changes to the remote origin repository in master
- Opens Visual Studio Code of the project (edit to suit preference)
- Add function from create.sh to your .zshrc file
- Edit function to suit your needs
- Function name to change
git-create
- Github username
- Initial commit message
- Initial README contents
- Function name to change
- Navigate to the root directory for your desired project folder
- i.e /user/Documents/Projects
- Execute
git-create <desired-repo-name>
- Storing of GitHub password for even less human input experience
- Make initial commit and README contents input options rather than (slightly) static messages
- Like how the description currently operates
- Added the ability to input a description to then be used as the GitHub repository description