So I have a commit to my local branch that has yet to be pushed to my remote. I worked a little after my local commit and decided to go back to what I had committed. I selected the Discard All Changes . . . under Source Control but it seemed to go back farther then I wanted. I can see the commits under my History . . . but when I select Pull . . . all I get is options for my remote branch (which still shows a branch that I terminated, so helping me refresh that would be great too but the other thing is more important right now).
Any and all suggestions are greatly appreciated.
Solution: So what I ended up doing was using git log
to find the commit that I wanted. I copied the commit number. Then git reset --hard *commit #*
. The files were in my Finder window but no in my Xcode project, so I went to Files->Add Files to "projectName" and added the files. After I assured myself that everything was fixed I committed my build using git push --force
.
Hope that is helpful to someone, feel free to comment if you have any questions on my solution.