Git Tutorial

less than 1 minute read

Published:

Git tutorial

Basics

This will cover the basics of git functions.

Collaboration

This will cover situation when you are collaborating with other people.

What to do when you have a conflict?

  • Option 1 – Fix it!
  • Option 2 – revert to head.

Tips

  1. Always use git pull before you push to the repo.

Resources

git config merge.tool vimdiff
git config merge.conflictstyle diff3
git config mergetool.prompt false

# after a merge conflict
git mergetool