Like most skills, it can take a little while to get your head around Git.
We rate our devs and the devs that we mentor on the following scale.
Where are you?
** Level 1 - Understanding the basic principles
At this level, you need to have an understanding of the basic operations (including branching).
Your workflow looks like this:
- init local repository / clone
** Level 2 - Working with Git on a team
Now that you know the basic Git commands you can start working on projects with more than one developer.
You should be using local feature branches for your work.
Your workflow involves:
** Level 3 - Learning to use pull requests
Pull requests can be used for code reviews within your team, or to accept suggested changes from people outside your team.
Pull requests should preferably be used with policies (TFS Git only - harder with GitHub).
** Level 4 - Working with a team advanced - Rebasing (harder, but worth it)
When working in a team, Git does a pretty good job of merging code together from different branches... but it can be very messy.
True Git masters master rebasing. It lets you keep a much cleaner project history.
Git process for Git masters:
rebase feature branch on top of remote master
push feature branch to remote or create pull request