Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git checkout remote branch

# In order to checkout a remote branch,
# you have to first fetch the contents of the branch
git fetch --all

# In mordern version of Git, cehckout the remote branch like a local branch
git checkout <remotebranch>

# Older versions of Git requiers the creation of a new branch based on the remote
git checkout -b <remotebranch> origin/<remotebranch>
Comment

git checkout remote branch

git checkout --track origin/<branchname>
Comment

git checkout remote branch

# In modern versions of Git, you can checkout the remote branch like a local branch.
git checkout <remotebranch>

# Older versions of Git require the creation of a new branch based on the remote.
git checkout <remotebranch> origin/<remotebranch>
Comment

how to checkout a remote branch in git

$ git checkout -t remote_name/remote_branch
Comment

how to checkout a remote branch in git

git checkout -t origin/future_branch (for example)
Comment

PREVIOUS NEXT
Code Example
Shell :: set nairobi timezone ubuntu server 18.04 
Shell :: how to kill a program in lunux mint 
Shell :: how to send files viascp to virtual machine 
Shell :: criar variáveis no mac 
Shell :: ubuntu auditd list of rules 
Shell :: telegram cli install ubuntu 
Shell :: how to run two files together in repl.it 
Shell :: bash commands inside Tcl 
Shell :: install modules mu 
Shell :: remove first 3 commits 
Shell :: how to show which kerne version is intalled on the system linux 
Shell :: assing command to a variable 
Shell :: mining from cli 
Shell :: delete a packete force apt 
Shell :: dokuwiki debug log 
Shell :: the http //repo.packagist.org/p/illuminate/ coud not download 
Shell :: ctags .virmc 
Shell :: quick access in linux terminal 
Shell :: view shell variables 
Shell :: install-lamp-stack-ubuntu-20-04-server-desktop 
Shell :: assign flutter path ios z shell 
Shell :: shell loop terminating after command 
Shell :: boundEastLongitude: -74.18249700000001 
Shell :: zsh silent backgrousd task output 
Shell :: shell script for aws lightsail launch 
Shell :: ssh nethack ip 
Shell :: how to install cv2 using pip 
Shell :: screenshot tool with markup in linux manjaro 
Shell :: change php version devilbox fish function 
Shell :: snaps folder has multiple copy of same app ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =