-1

I have some local version of a some branch. It was pulled some time ago. Now I want to update that branch with a fresh updates. I call

git fetch;
git pull;

And I get a number of conflicts in my working directory!

Why this happens? Before pull my working directory was clean. No commits from my side. No divergence possible. And despite this I see conflicts.

Why this happens?

How can I fix it?

MiamiBeach
  • 3,261
  • 6
  • 28
  • 54

1 Answers1

1

You likely have changes that need to be committed before you pull. Make sure you commit your changes before you pull

Also, you don't need to pull and fetch: pull calls fetch. Please see documentation on Git pull Operation and this answer. I also recommend you search for "Git best practices". You'll find a whole host of articles on the interwebs, e.g. an effective Git branching model.

Community
  • 1
  • 1
Austin
  • 8,018
  • 2
  • 31
  • 37