Skip to content

Instantly share code, notes, and snippets.

@OmidK
OmidK / O's awesome Git reference
Created Apr 3, 2013
This is what I use everyday at work whenever GitX-L is not cutting it.
View O's awesome Git reference
# clone branch
git checkout -b <branchName> origin/<branchName>
# make sure ssh is working
git ls-remote
# back to master
git reset --hard HEAD
# revert many commits