I’ve got a project checked locally from GitHub, and that remote repository has since had changes made to it. What’s the correct command to update my local copy with the latest changes?
Answer:
Pull all remote branches
1 |
git pull --all |
List all branches now
1 |
git branch -a |
Download your branch
1 |
git checkout -b
|
Shows the current branch. Must show <feature branch>
with * In front of it
1 |
git branch |
Checkout changes from master to the current branch
1 |
git pull origin master |
OR checkout any other <feature branch>
into current branch
1 |
git pull origin
|