How to drop local state in git -


how drop local state in git ?

eg. 199 commit ahead of origin/mybranch on local mybranch unfortunalty have done nonsense ...

what want achieve similar :

cd .. rm my-git-dir git clone https://github.com/me/my-git-dir.git cd my-git-dir git checkout mybranch 

git checkout mybranch git reset --hard origin/mybranch 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -