jayr parro
jayr parro

Reputation: 286

branch & merging

Here's the scenario:

  1. development branch (current commit dated 11/15)
  2. then, i've make a feature branch (FeatureA) from development (with current commit dated 11/15)
  3. modify & work in the feature branch (FeatureA)
  4. other user, committed/merged to the development branch  (current commit dated 11/16)

So, I update my local copy of development branch (dated 11/16).

command: git pull origin development

But my feature branch (FeatureA) is still based from the previous commit (date 11/15) of development. right?

Question: how to update my feature branch from the updated code in development?

git merge development, this command?

Upvotes: 0

Views: 85

Answers (2)

Devon Moss
Devon Moss

Reputation: 33

git fetch origin 

should update your branch with the changes made to the code in development.

Upvotes: 0

Fred Foo
Fred Foo

Reputation: 363807

Either git merge development or git rebase development. Prefer the latter only after reading up on rebasing, since it rewrites history.

Upvotes: 1

Related Questions