Git Command Line

git rev-parse --short HEAD (Get Current Head)

git checkout production (switch branch)

git reset --hard <commit id> (reset head)

when git not up to date when pull after reset head, use this

git reset --hard HEAD~20 # some large number
git pull origin master

\ Get the latest news /

Leave a Reply

Your email address will not be published. Required fields are marked *