Result of the command git merge origin/master
:
javanoob@DELL:~/workspace/PROJECT_One$ git merge origin/master
Updating d83ef9c..dd520ea
error: The following untracked working tree files would be overwritten by merge:
sample.txt
Please move or remove them before you can merge.
Aborting
Result of the command git merge master
:
javanoob@DELL:~/workspace/PROJECT_One$ git merge master
Already up-to-date.
When I do the command git merge origin/master
It shows that there are some files which will be overwritten but if I do the same command without the prefix origin/
it says everything is already up-to-date.
What is wrong in this setup?
I don't know if it matters but before running these commands, I did run the command git fetch origin