I have an Xcode 4.2 project that uses git as repository. I make some changes in my source code files. In order to discard changes in one file, I do the following:
But I want to discard all changes in all files in my project. How to do it?
File > Source Control > Commit (⌥⌘C), on the left pane select the files you want to reset, right click on selection and click Discard Changes in the context menu.
From the command line in the git repository you could do
git co -- .
to reset the files to the HEAD revision.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With