Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git get remote branches

git branch -r
Comment

How do I check out a remote Git branch?

In this case, you probably want to create a local test branch which is tracking the remote test branch:

$ git branch test origin/test
In earlier versions of git, you needed an explicit --track option, but that is the default now when you are branching off a remote branch.

To create the local branch and switch to it, use:

$ git checkout -b test origin/test
Comment

git get remote branch

git fetch
git checkout test
Comment

PREVIOUS NEXT
Code Example
Shell :: how to check directory size in linux 
Shell :: unmount linux disk 
Shell :: install AMD drivers on Ubuntu 21.04 
Shell :: execute command remotely by ssh 
Shell :: postgresql cli first time 
Shell :: angular add universal 
Shell :: prettier install using npm 
Shell :: wsl2 file location 
Shell :: debian search entire system for file 
Shell :: certbot nginx certonly 
Shell :: apache license 
Shell :: Cannot install in Homebrew on ARM processor in Intel default prefix 
Shell :: install brew on mac m1 
Shell :: gcc alternatives 
Shell :: ubuntu install brave 
Shell :: ssh transfer folder 
Shell :: bash for loop multiple statements 
Shell :: install windows app powershell 
Shell :: reset repo 
Shell :: how to install curl on macos 
Shell :: make shortcut folder for wamp 
Shell :: ubuntu get current path 
Shell :: fish wsl 
Shell :: Install Zenkit on Linux 
Shell :: how to run .sh script in mac 
Shell :: open path using terminal ubuntu 
Shell :: git merge main into branch 
Shell :: install packages from txt 
Shell :: kill process linux 
Shell :: wordpress update all plugins cli 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =