Info

Git Info

Various Git commands handy cheatsheet.

These are default git commands normally used in a project.
I usually use "Github Desktop" due to GUI and how easy it is to download my repositories from github.com & it's free.

My all time favorite is "Tower" git client and favorite enterprise git SaaS is "Gitlab" for personal use "github".

Syntax

Fast one liners for easy reference.

Current Status

Gives you the status of the current repository

git status 

Git version

Gives you the git tools installed on your machine.

git version

Fetch

git fetch origin_url
git pull 

Commit

git add -A
git commit -m 'Commit message' 

Push

git push

Branching

git checkout branch_name

Hash lookup

Get full commit hash from short hash
git rev-parse will give you what you want.

git rev-parse 03d6929