I've checked in some changes to my local repository that I want to push, but when I do a git pull, I get:
Paul-Butchers-MacBook-Pro:TouchType-Build paul$ git pull error: Untracked working tree file 'documentation/Android/SwiftKey/buttons.xcf' would be overwritten by merge. Aborting
My working tree contains no untracked files:
Paul-Butchers-MacBook-Pro:TouchType-Build paul$ git status # On branch master # Your branch and 'origin/master' have diverged, # and have 2 and 26 different commit(s) each, respectively. # nothing to commit (working directory clean)
The commits that I've made do not touch the file that it's complaining about.
I've read answers suggesting that I do a git reset HEAD --hard
, but I'm not sure what effect that will have on the commits that I've made?
Thanks in advance for any help