Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

switch to remote branch git

# creates a branch called some_branch
# switches to this newly created branch
# pulls changes from the origin remote branch
git checkout -b some_branch origin/some_branch
Comment

git replace local branch with remote

git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
Comment

git change branch remote

git branch branch_name --set-upstream-to your_new_remote/branch_name
Comment

git replace local branch with remote

Delete your local branch: 							git branch -d local_branch
Fetch the latest remote branch: 					git fetch origin remote_branch
Rebuild the local branch based on the remote one:	git checkout -b local_branch origin/remote_branch
Comment

git branch change remote

git branch branch_name -u your_new_remote/branch_name
Comment

PREVIOUS NEXT
Code Example
Shell :: kubernetes command kubectl 
Shell :: installing whatsapp 
Shell :: ubuntu install docker-compose 
Shell :: digit sum number in c 
Shell :: npm-gui 
Shell :: git create local branch 
Shell :: how to create a github account 
Shell :: put grep output in a file 
Shell :: gitignore generator201 
Shell :: git delete all remote branch except master 
Shell :: git stash changes 
Shell :: git set upstream always 
Shell :: grep everything after a pattern 
Shell :: ubuntu unzip 7z 001 
Shell :: install csfml on linux 
Shell :: ubuntu install unzip 
Shell :: debian buster enable rc.local 
Shell :: git stage all 
Shell :: how to merge git 
Shell :: cargo test specific test 
Shell :: edit files from terminal linux 
Shell :: kubectl describe to yaml 
Shell :: chmod 
Shell :: bash rename multiple files pattern 
Shell :: how to install spotify in ubuntu 
Shell :: get public ip 
Shell :: Unable to upgrade Flutter: no origin repository configured. 
Shell :: scp folder copy 
Shell :: where to store env file in firebase functions 
Shell :: react bootstrap 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =