Mastering Git

Here is I'm going to give you the best practice of using Git effectively and efficiently. I assumed that you already know about Git and have at least a little experience with it.

  1. Create a repository for every project you got. By your account, team, or group.
  2. Fork a repository. Keep it up to date.
  3. Create a branch for every feature.
  4. Create a pull request if you have completed the feature.
  5. Discuss with your tech lead if you get merge conflicts.

The master branch is the production. Don't push any changes directly to the master. Create the feature branches with the "feature/" prefix. You also could make other branches with other prefixes, such as "fix/" for fixing bugs as an example. You could return to the branch if there is a new bug or related improvements. Here are my other tips:

Related Articles

Comments

comments powered by Disqus