This post is to share the git workflow I use for my projects. I am mainly writing this post so I can use it as a cheat sheet from time to time. However, I think it will serve as a good reference for any developer that wants to go beyond the
git push workflow.
This posts assumes that you are familiar with the basics of git. If you are not then I recommend the video below, by Traversy Media for a quick overview:
git checkout -b <branch-name>
Use the following command to see changes:
git add <files-changed>
git commit -m "<commit message>"
For commit messages I use the article by Chris Beams as reference:
git checkout master
git push origin <branch-name>
Pull request can be found on github or gitlab (whatever you are using). There you can review and add more comments to it.
That is all!
Got questions? Feel free to reach out via the comments or my twitter
Ok! Now back to learning 👨🏿💻