How to ignore uncommited change in Github gui for MAC?

ttotto picture ttotto · Jul 8, 2012 · Viewed 8k times · Source

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?

Answer

user01380121 picture user01380121 · Oct 31, 2014

Place a checkmark near each of the changed files, then go to the Repository menu and click Discard Changes to Selected Files.