git

git cheat sheet

Here is my personal git cheat sheet.

Simple commands

Pull commits from remote repository

git pull

Will pull commits from the "origin" remote repository and merge any changes into your local repository.

git pull --rebase

Will pull commits from the "origin" remote repository and replay your local changes on top of these commits. You will not get a extra "merge commit" but it can only be used on a repo without local changes. All changes must be committed or stashed.

Branches and tags

List branches local and remote

Tags: