1

I have common github repo with others. Someone implemented a code in his branch named refactor/changes and pushed it into our common repo without opening pull request.

I access it through this code shown below

git branches -a
git checkout -b refactor/changes remotes/origin/refactor/changes

Someone also added some codes in the repo and pushed it again.

How can I get the last changes from remotes/origin/refactor/changes to my local branch named refactor/changes ?

S.N
  • 2,157
  • 3
  • 29
  • 78

1 Answers1

1

Here is the answer shown below.

git fetch

S.N
  • 2,157
  • 3
  • 29
  • 78
  • I recommend that you read more about both `git fetch` and `git pull`. They do two different things and are both useful depending on the result you want. – Code-Apprentice Apr 15 '23 at 23:43