Oddly, git reset --hard
should remove any changes made to local repositories.
you can try git stash && git pull
, it just pushes changes in some kind of temporary branch ( git stash clear
to remove any change trace)
If this does not work, you can try this (if you are on the main branch and that the tmp branch does not exist)
git checkout origin/master -b tmp git branch -D master git branch -m master
source share