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 branch from remote to local

git checkout -b test origin/test

// making a local copy of the branch called "test" from origin.
Comment

git checkout remote branch

git checkout --track origin/<branchname>
Comment

checkout remote branch

git fetch origin 

git checkout –track origin/xyz 
Comment

git checkout to remote branch

$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'
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

checkout remote branch

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

Git - checkout a specific remote branch

$ git checkout -t origin/remote-branch

Branch 'remote-branch' set up to track remote branch 'remote-branch' from 'origin'.
Switched to a new branch 'remote-branch'
Comment

checkout remote git branch

git checkout -b test <name of remote>/test
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

git checkout to remote branch

$ git checkout -b test origin/test
Comment

PREVIOUS NEXT
Code Example
Shell :: unix get epoch in miliseconds shell 
Shell :: see output of a running processes linux 
Shell :: add username password git 
Shell :: how to install linux 
Shell :: zsh: command not found: wine-stable 
Shell :: wsl2 vs virtualbox performance 
Shell :: install teamviewer ubuntu 18 
Shell :: codeigniter 4 db seed 
Shell :: elk max virtual memory areas vm.max_map_count [65530] is too low 
Shell :: You need to have the Android SDK Build-tools installed on your system 
Shell :: bash script to clean up log files in /var/log 
Shell :: download composer 
Shell :: enable apache2 site 
Shell :: td-agent restart 
Shell :: generate new ssh key 
Shell :: install chocolatey on windows 
Shell :: ubuntu browser download manager 
Shell :: gtk4 windows install 
Shell :: install docker linux 
Shell :: create and switch to a branch 
Shell :: batch color escape character 
Shell :: port forward kubernetes 
Shell :: how to use gitignore to ignore a folder 
Shell :: open current dir cmd 
Shell :: how to delete files from command line 
Shell :: how to install windows from a hard drive 
Shell :: git change rempte 
Shell :: Backup Restore and Upgrade Gitlab 
Shell :: git reset in gitlab 
Shell :: ubuntu locate binary file 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =