Useful/Common Git commands

By | October 16, 2019

Below are the commands I use for committing to a develop repository, merging to master, tagging the push, etc.

Before running these commands, be sure to update any,, and package.json/requirements.txt/etc. files in the repository documenting your change. Also, tagging the push is necessary so a release can be defined in GitHub. The tag should use the version of major, minor, hotfix for versioning.

git checkout -b develop
git add .
git commit -m "My comment here"
git push origin develop
git checkout master
git merge develop
git tag X.X.X 
git push origin master --tag 

As mentioned above, once the master has been pushed with tags, you can then create a release with details that match the version and the changes that were made (also found in