SOFTWARE ENGINEERING

SOFTWARE PROJECT MANAGEMENT

CONFIGURATION MANAGEMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ command renames the current branch to <branch>
A
git remote rm <name>
B
git branch-m <branch>
C
git branch-D <branch> (CAPS)
D
git rebase <base>
Explanation: 

Detailed explanation-1: -To rename the branch, you need to run the command git branch-m new-name .

Detailed explanation-2: -Choose Team → then Advanced → then Rename branch. Then expand the remote tracking folder. Choose the branch with the wrong name, then click the rename button, rename it to whatever the new name. Choose the new master, then rename it to master.

Detailed explanation-3: -To be precise, renaming a remote branch is not direct – you have to delete the old remote branch name and then push a new branch name to the repo. Step 2: Reset the upstream branch to the name of your new local branch by running git push origin-u new-branch-name .

There is 1 question to complete.