Answers for "set upstream push git"

14

git set upstream

git branch --set-upstream-to <remote-branch>

// example
git branch --set-upstream-to origin feature-branch

// show up which remote branch a local branch is tracking
git branch -vv

// short version to set upstream with very first push
git push -u origin local-branch
Posted by: Guest on May-24-2020
1

add upstream in git

# checking the url of remotes
git remote -v

# add another url to git
git remote add upstream <url>

# now you can use

git pull upstream master (or other branch names)

upsteam is the standard name used, but you can change it if you want to
Posted by: Guest on December-02-2021
0

git set upstream remote branch

git pull --set-upstream origin <remote-branch>
Posted by: Guest on August-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language