i am currently working on windows.
Sometimes i have problems when i try :
git checkout origin develop
i have this error : error: un
First make sure to run your cmd/terminal as an administrator (right click on cmd.exe icon -> "Run as Administrator")
I had the same issue with a git pull (using cmder on windows). What worked for me is this:
This will delete your local changes:
hard reset your branch and try again.
$ git checkout origin develop - (failed)
$ git reset --hard HEAD
$ git checkout origin develop - (great success!)
If this doesn't work try forcing the checkout:
This will also throw away your local changes
$ git checkout -f origin develop.