Git cheatsheet - jigneshpshah/greycube_helpmanual GitHub Wiki

to check git commit head

git rev-parse --short HEAD

to ignore local changes

git reset --hard

to ignore un-tracked files & directories

git clean -fd

to reset to a specific branch

git reset --hard origin/<branch_name>

e.g. git reset --hard origin/version-12

rename remote from origin to upstream

git remote rename origin upstream

git clone branch

git clone -b version-12 https://github.com/frappe/frappe.git

to know remote

git remote -v

to know branch

git branch