Skip to content

Instantly share code, notes, and snippets.

@robsquires
robsquires / git-cheatsheet.md
Last active April 5, 2024 19:58
Git cheatsheet

Pulling and Pushing your branch

When pulling or pushing your branch there are 4 states you may find yourself in:

  1. Behind Github - Github has all the commits on your working copy of the branch, plus some extras. When you are updating your copy of main, it will always be this state. A feature branch may be in this state if you've been pairing

  2. Ahead of Github - your branch has all the commits that Github has, plus some extras. Your feature branch will be in this state most of the time