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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -