I had accidentally added a wrong to git update (git add wrongfile
). I committed this change and started pushing to git server (git push origin master
). But then I realized I had committed a wrong file (the wrongfile size is more than 200MB XML file), there for I interrupted the upload. I deleted that file and removed it from git changes (git rm wrongfile
). But now the terminal says:
Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits)
Does anybody know how to resolve this? I used git reset --hard HEAD
but it didn't work. (I have backed up my files if anything goes wrong.)