Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to pull branch from github

git pull origin branch-name
git switch branch-name
Comment

how a to pull a branch in git

$ git pull origin other-branch
Comment

pull branch from github

#pull changes from remote to local copy of same/current branch:
git pull

#create a new local branch
git checkout -b new-branch

#switch to an existing local branch
git checkout other-branch

#--track: remote branch speified is the basis for the newly-created local branch
git checkout -b new-branch --track origin/develop 

#restoring an old revision of a file:
git checkout <revisionID> <file>

#HEAD as the revision -> undo local changes to a file:
git checkout HEAD <file>
Comment

PREVIOUS NEXT
Code Example
Shell :: linux substitute string 
Shell :: powershell install oh-my-posh 
Shell :: apache2 configtest 
Shell :: uninstall brew from linux 
Shell :: how to remove remote ulr 
Shell :: how to get out of git bash editor 
Shell :: github access scoped to clone private repo 
Shell :: git tls certificate verification has been disabled 
Shell :: psycopg2 error 
Shell :: pip upgrade command 
Shell :: unable to install all modules vmware 
Shell :: how to create a shortcut in a batch file 
Shell :: ubuntu adduser 
Shell :: nginx: invalid option: "restart" 
Shell :: delete merged branches in git 
Shell :: store ls into array bash 
Shell :: assign variable with sed not working 
Shell :: how to change the name of a usb ubuntu] 
Shell :: github drupalcomposer project 
Shell :: "C:UsersMY PCAppDataRoaming pm/node_modules/node/bin/node: line 1: This: command not found" 
Shell :: vite starting comand 
Shell :: material ui install 
Shell :: git change commit author for all commits 
Shell :: how to upload laravel project on github using command 
Shell :: git checkout new branch with uncommitted changes 
Shell :: bash write 
Shell :: install babel 
Shell :: retroarch for ubuntu 
Shell :: copy folders linux 
Shell :: chmod for pem file 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =