Git command – reset, branch

Spread the love

*Git reset back to point
git reset –hard 97272b8
git add .
git commit -am ‘test switch back 97272b8 ‘
git push origin master –force

*Git work on Branch
git pull origin master
git checkout -b ‘new-branch’
–after change
git add .
git commit -am ‘some change’
git pull origin new-branch
git push origin new-branch
git checkout master

Facebook Comments

Published by

Titus Choi

I love technology. Working for information technology. Interested in AVR technology. Playing with RC stuff.