version control - GIT: pulling a branch results in a conflict. Why? -


i have local version of branch. pulled time ago. want update branch fresh updates. call

git fetch; git pull; 

and number of conflicts in working directory!

why happens? before pull working directory clean. no commits side. no divergence possible. , despite see conflicts.

why happens?

how can fix it?

you have changes need committed before pull. make sure commit changes before pull

also, don't need pull and fetch: pull calls fetch. please see documentation on git pull operation , answer. recommend search "git best practices". you'll find whole host of articles on interwebs, e.g. an effective git branching model.


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -