Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git track remote branch

# Set upstream when pushing to remote
git push -u origin topic

# Set upstream without pushing it
# with option -u / --set-upstream-to
git branch -u origin/topic
git branch --set-upstream-to=origin/topic
Comment

git local branch track remote

git branch --set-upstream-to=upstream/foo

git branch --set-upstream-to=upstream/foo foo
Comment

git track remote branch

$ git checkout --track origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'
Comment

git local branch track remote

git branch --set-upstream foo upstream/foo
Comment

git local branch track remote

git branch -u upstream/foo foo
Comment

git local branch track remote

git branch -u upstream/foo
Comment

PREVIOUS NEXT
Code Example
Shell :: hide desktop icons macos 
Shell :: root folders via gui ubuntu 
Shell :: npm install version 
Shell :: install gradle ubuntu 20.04 
Shell :: interesting bash scripts 
Shell :: git commit message 
Shell :: get working directory rstudio 
Shell :: ubuntu wsl go to desktop 
Shell :: elasticsearch get indices regex 
Shell :: git current branch 
Shell :: How to Change Your MySQL/phpmyadmin Password in XAMPP 
Shell :: linux memes 
Shell :: get all pods in a node kubectl 
Shell :: ubuntu not showing video thumbnails 
Shell :: how to reset local git credentials of android studio 
Shell :: how to delete all branches in git local 
Shell :: git commit single file 
Shell :: heroku subfolder 
Shell :: how to configure git and github 
Shell :: how to remove a package from arch linux 
Shell :: find text in linux file 
Shell :: how to revert a git stash 
Shell :: how to install virtualbox in ubuntu 18.04 
Shell :: unattended-upgr 
Shell :: html2canvas 
Shell :: shutdown command rhel 7 
Shell :: install mpdf laravel 
Shell :: powershell env vars 
Shell :: github username 
Shell :: docker load 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =