How I configure my git in a new computer

git config --global user.name "Firstname Lastname"
git config --global user.email "username@myEmail.com"
  • ap is the way you should always add your code to a commit. The patch option shows you your changes one by one, and asks you if you want to add them. This forces you to code review yourself in each commit, and makes it easier to create independent commits (sometimes I find myself implementing a whole feature at once, but splitting it in several commits to make it easier for others to understand my code, to make it easier to cherry-pick and even for me to understand what I just did).
  • rn allows you to rename branches, just like using the mv command in the shell to rename folders.
git rn feature/adds-fireball feature/adds-freeze-ray
git rn feature/adds-freeze-ray

--

--

Dev at Sketchfab

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store