CopyPastor

Detecting plagiarism made easy.

Score: 0.8991821108654858; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-05-17
by Vijendran Selvarajah

Original Post

Original - Posted on 2011-07-06
by siride



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If you want to rename a branch while pointed to any branch, do:
git branch -m <oldname> <newname>

If you want to rename the current branch, you can do:
git branch -m <newname>
A way to remember this, is -m is for "move" (or mv), which is how you rename files.
src : https://stackoverflow.com/questions/6591213/how-do-i-rename-a-local-git-branch?rq=1


If you want to rename a branch while pointed to any branch, do:
git branch -m <oldname> <newname>
If you want to rename the current branch, you can do:
git branch -m <newname>
A way to remember this, is `-m` is for "move" (or `mv`), which is how you rename files.

        
Present in both answers; Present only in the new answer; Present only in the old answer;