Summary

  • Using Git has become second nature to most software developers, but it can still be a bit daunting to start with — so some helpful tips for those new to it include setting your name and email address within Git to ensure commits can be attributed to the correct person, setting up aliases for commands that are used regularly, creating a .gitignore file to stop unhelpful files being tracked, and writing commit messages that are short and concise, while being descriptive enough to make changes clear.
  • Additionally, branching in Git is very useful but can be difficult to understand initially, so it helps to make sure you understand what branches are meant for, how to create them, how to commit to them, and how to merge them back into the master branch when they are finished; it is also helpful to understand the difference between git pull and git fetch, as they are not the same, especially in a collaborative environment.

By Ramces Red

Original Article