GitGo is a bash script to initialise a new Git project. It performs the following steps:
- Runs
git init. - Adds all files to the repo.
- Creates an "initial commit".
- Creates a tag if
-targument is passed. - Runs
git flow initif-foption is passed. - Checks if remote origin argument (
-r) was passed. If so then: - Sets the remote origin.
- Pushes the master branch, and sets it to track
origin/master. - Pushes the develop branch, and sets it to track
origin/develop. - Pushes the tag if created.
gitgo.sh [-f] [-t=INITIAL_TAG] [-r=REMOTE_REPO]-f
: Indicates the intent to use git-flow
-t
: Indicates the intent to tag your repo state. Pass the tag value to this argument.
-r
: Pass your remote repository path to this argument.
gitgo.sh -f -t 0.1 -r git@github.com:erikreagan/gitgo.git- GitGo currently assumes that you do not deviate from the git-flow default branch names of
masteranddevelop - You can alternatively move the script into your
$PATHfor easier access