Search code examples
gitbranchpull

git: pulling remote origin into a new repo


I have a remote repository that pulls into my local branch A. Now I created a new branch B from A.

What is the command to pull changes of the remote repo into B?


Solution

  • If you are currently on branch B, you can use following command

    git pull origin [remote branch name]