“Git Change Master Branch” Kode Jawaban

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
VasteMonde

Git pindah perubahan dari master ke cabang baru

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
Testy Teira

Jawaban yang mirip dengan “Git Change Master Branch”

Pertanyaan yang mirip dengan “Git Change Master Branch”

Lebih banyak jawaban terkait untuk “Git Change Master Branch” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya