Closed snigdhajain closed 9 years ago
Seems that you have uncommited changes on your current branch. Do git commit -m "commit message", and then try to merge again.
:+1:
Make sure you have done a git pull first:
git pull
If you have and you still have trouble you might have local uncommitted changes as @Ziliboba mentioned.
To stash (preserves local changes WITHOUT committing them):
git stash \ git pull \ git stash pop
To reset (discards all local changes)
git reset --hard
where am i entering these commands??
git bash
I also see this error, but my branch clean, that is, it has be commit. How do I solve it.
Faced same issue but my reason was quite different. I setup git on windows powershell few days ago . later i switched to cygwin and was doing git pull. :) switching back to windows powershell resolved the issue.
@mkaleem4 on the terminal on your current local branch in your current project folder
i want to keep the changes in my local branch
How to force overwriting of local changes in this case?