0

I am participating in a project with many branches and when I work on my branch, another branch (for example master) gets updated on remote. I indeed would like to pull changes to it without changing my current branch (without checking out). Is this possible and if yes, how?

phd
  • 82,685
  • 13
  • 120
  • 165
Sergey Emeliyanov
  • 5,158
  • 6
  • 29
  • 52

2 Answers2

1

https://git-scm.com/docs/git-fetch:

git fetch origin master:master
phd
  • 82,685
  • 13
  • 120
  • 165
1

Try git fetch <remote> <source>:<destination> .

This worked for me git-forward-merge <source> <destination> But it doesn't work for merges that require conflict resolution.

Shweta Gupta
  • 726
  • 2
  • 6
  • 12