Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git pull branch you are not on

# Merge local branch foo into local branch master,
# without having to checkout master first.
# Here `.` means to use the local repository as the "remote":
git fetch . foo:master

# Merge remote branch origin/foo into local branch foo,
# without having to checkout foo first:
git fetch origin foo:foo
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #pull #branch
ADD COMMENT
Topic
Name
6+6 =