Git can be your best friend or your worst enemy at times. Navigating through the treacherous waters can be sometimes nerve racking for even long time users at times.
Not all git processes are the same. With using git more than 10 years now, I have seen several different processes within companies. Our of these, main practices I have noted are these:
- Git Branch Methodology
- Git Commit Methodology
I will break down each of these with pros and cons and show you the series of git commands that works best for each. To make it easier to understand, I will use a book analogy, with chapters being the branches and commits being the pages.
Git Branch Methodology
Using branches I have found to be the most common practice. It usually conisists of these commands.
- To start:
git clone {repo}
- You're