Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

1 uncommitted change would be overwritten by merge in visual studio 2013

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.

like image 935
ani Avatar asked Mar 16 '16 04:03

ani


2 Answers

I did the following and it cleared things up nicely:

git status
git pull
like image 108
Mark Avatar answered Nov 04 '22 06:11

Mark


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

like image 27
Taj Ahmed Avatar answered Nov 04 '22 07:11

Taj Ahmed