Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create local branch to track remote

git checkout --track origin/some_remote_branch
Comment

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 :: dos2unix 
Shell :: git clone with subdirectories 
Shell :: wifi drivers realtek 8852 for Ubuntu 
Shell :: pip install caffe 
Shell :: linux bash test connection to host and port 
Shell :: what does worktree prune do 
Shell :: bash script creation 
Shell :: find sort 
Shell :: linux os upgrade 
Shell :: installing android studio on kali linux 
Shell :: linux command find executable 
Shell :: check on cmd all installed version 
Shell :: linux zip file without parent directory 
Shell :: Rename git branch while working in the branch 
Shell :: vue telephone number 
Shell :: how to install ros package 
Shell :: openzeppelin install 
Shell :: photoview github 
Shell :: github claims I have a large file that 
Shell :: zsh for 
Shell :: mongoalchemy flask 
Shell :: step7 pgadmin ubuntu 20.04 
Shell :: how to use usb 3 with virtualbox 
Shell :: docker run image 
Shell :: renaming branch in git 
Shell :: Create and Switch To a New Branch in git command 
Shell :: move all subfolders to parent folder linux 
Shell :: bash copy folder 
Shell :: nextjs start production 
Shell :: magento ssh commands 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =