Git and Git Hub reminds

Some short reminds:

Going back to a previous push :

(local):
git reset --hard ce82c8108042e555b57013 
where ce82c8108042e555b57013 is the SHA key 

(remote):
git push -f origin

Getting all (remote) branches to (local)

git fetch origin

Cloning a (remote) branch to (local)

git checkout -b  ''  origin/''


...

Comments