Skip to content

Instantly share code, notes, and snippets.

View git _helpers.md

git

This is list of the git commands I use.

The usual flow of developed is clone or fork a repo, create a branch, change code, create commits at logical stopping points, push those commits, and finally merge the branch (usually done on a website).

Branches

Branches let you create a copy all the code from whatever branch you are on. This lets you make changes that can me merged mack into the original branch, but doesn't effect the original. They help with conflicting changes by multiple people and code reviews.

Create new branch