Linux Tutorial
here consider local branch is created and placed the patch in upstream,
$> git clone <project-repo> $[project]> git checkout -b <local-branch> $[project]> //update the files $[project]> git status $[project]> git add <file1>, <file2> etc... $[project]> git commit $[project]> git review
Later if we need to change the local branch name created which is not matching to the patch, then do the following command,
if you are in same <local-branch>
$[project]> git branch -m <new-local-branch>
if you are in different branch except <local-branch>
$[project]> git branch -m <local-branch> <new-local-branch>
This git command changes the local branch name and reflects the changes in patch after below commands execution.
$[project]> git commit --amend $[project]> git review
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us
| Report website issues in Github
| Facebook page
| Google+ page