Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git change master branch

## 1) Rename master branch to oldmaster.
git branch -m master oldmaster
#Now there is no master branch on my local machine.

## 2) Rename my masterTemp branch to master
git branch -m masterTemp master
#The branch which was named masterTemp on my local machine is now master

## 3) Delete the branch from remote
git branch -rD master

## 4) Push the new master branch to remote
git push --force origin master
Comment

git move change from master to new branch

git stash						//you can stash the changes in the master branch .
git checkout -b newbranchname	//then checkout the branch
git stash pop					//and pop the changes here
Comment

PREVIOUS NEXT
Code Example
Shell :: delete a file from repo history 
Shell :: gcloud app deploy 
Shell :: git exclude some files from git commit 
Shell :: sed add word to end of line 
Shell :: ll by date 
Shell :: remove docker machine 
Shell :: pip install requireents 
Shell :: kill port cli 
Shell :: update path variable mac 
Shell :: macos make file executable 
Shell :: silent install google chrome 
Shell :: github add multiple credentials windows 
Shell :: how to install nvm in ubuntu 
Shell :: how to set gcc-8 as default in linux 
Shell :: ubuntu no internet connection 
Shell :: pgadmin4 on docker 
Shell :: tar multiple files in linux 
Shell :: upgrade docker-compose version 
Shell :: install solana anchor 
Shell :: bash split string into array 
Shell :: how to untrack files in git 
Shell :: remote origin remove 
Shell :: encrypt files in linux 
Shell :: failed to start openbsd secure shell server 
Shell :: download telegram for ubuntu 
Shell :: git flow new feature branch 
Shell :: bash script command not found 
Shell :: remove all branches deleted on remote 
Shell :: bash get file size in mb 
Shell :: mac force quit 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =