Horje
switch to a different remote branch git Code Example
switch to a different remote branch git
#Below is my method to switch and work for a remote branch of a git repository.
#Have a look for all the branches first, just input following command in the terminal:
$ git branch --all

#And then you will see the all the branches on local and remote. Something like this:
*master
remotes/origin/develop
remotes/origin/master
remotes/origin/web
remotes/origin/app

#Let's pretend you want to switch to the remotes/origin/develop branch. Type following:
$ git checkout remotes/origin/develop
# Then type git branch --all again to find this:

*(detached from remotes/origin/develop)
master
remotes/origin/develop
remotes/origin/master
remotes/origin/web
remotes/origin/app
# And then just do:

$ git checkout -b develop
#From now on, you are working on the remotes/origin/develop branch exactly.




Shell

Related
pyinstaller Code Example pyinstaller Code Example
visual studio code ubuntu Code Example visual studio code ubuntu Code Example
find the size of file in linux Code Example find the size of file in linux Code Example
bash cd or make dir if not exists Code Example bash cd or make dir if not exists Code Example
ls human readable size Code Example ls human readable size Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9