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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -