Search code examples
xcodegithubgithub-for-mac

How to ignore uncommited change in Github gui for MAC?


I am using Github GUI for Mac. Now I've some changes in my local repository, but I want to ignore them and pull latest remote repository. I tried Repository/Pull, but got Git Error.

"•error: Your local changes to the following files would be overwritten by merge: Classes/xxx.m Please, commit your changes or stash them before you can merge."

I tried Repository/Synchronize, but got following error.

"Sync Failed. Please commit all your changes before syncing."

Any idea?


Solution

  • If you mean using MAC GUI only, check and right click the changed files then select the discard the changes.