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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -