Git commands to live by

This is a collection of common git commands that I use very often in my daily work. I have only touched on GitHub and find it fairly sufficient for my needs, and thus this post will base on GitHub as well. Case 1: start a new repository Let’s say we want to upload ~/analysis/ to GitHub On GitHub: create a new repository The only things I will set here are the repository name and the choice whether it is public or private.