0

this is probably very trivial but I am confused by terminology used in git.

I have a local branch with lots of uncommited and modified files, and there is a remote/master branch.

I am not ready to push all my local changes to remote/branch since it would start a large merge. I would just like to receive the other changes in remote/branch and apply them on my local version without changing branch.

how to do this? I have been using git extensions but it is not available for me now, I only can use git CLI

00__00__00
  • 4,834
  • 9
  • 41
  • 89

2 Answers2

2

You must use git pull to achieve what you want.

See this comment: What is the difference between 'git pull' and 'git fetch'?

And, of course, for real learning, Git documentation: git pull

1

First what you need to do is make sure your master is latest and greatest. If not just do git pull origin master.

Secondly then commit your local changes to your branch and merge that branch into your master and then push your master to the origin.

danglingpointer
  • 4,708
  • 3
  • 24
  • 42