user6631218
user6631218

Reputation:

how to get the newest commit where in master

I'm the beginner of git.
So, I have a question about git.
I create a branch of mine
I use --rebase master & merge to add my commit that my branch at master branch.
And now I checkout to my branch.
I don't know how to get the merge version in my branch.
Thanks.

Upvotes: 1

Views: 55

Answers (1)

Mayank Jha
Mayank Jha

Reputation: 134

its very easy to get updated code on your branch first checkout your branch

git checkout branchname

after that

git pull origin master

this way you will get updated code from master to your branch

Upvotes: 4

Related Questions