while i am trying to pull a source to git it shows error as follows"An error occurred. Detailed message: 1 uncommitted change would be overwritten by merge"
I searched and tried those things like: commit in local repository and pull remove the untracked files
Both not worked for me.
I did the following and it cleared things up nicely:
git status
git pull
do a stash before pull your changes ,no need to create a new commit to pull new changes
git stash;
git pull origin master;
git stash pop;
Nicely explained in
[Official documentaion] git stash
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