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
Post a Comment