.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "GIT\-RENAME\-BRANCH" "1" "November 2023" "" "Git Extras" .SH "NAME" \fBgit\-rename\-branch\fR \- rename local branch and push to remote .SH "SYNOPSIS" \fBgit\-rename\-branch\fR .SH "DESCRIPTION" .nf Rename local branch and push the new branch to remote .fi .SH "OPTIONS" .nf <old\-branch> Old branch whose has to be renamed\. This is an optional parameter\. If no value is supplied then the current branch will be renamed\. <new\-branch> New branch name .fi .SH "EXAMPLES" .nf $ git rename\-branch old\-name new\-name $ git rename\-branch new\-name .fi .SH "AUTHOR" Written by Hozefa Jodiawalla <\fIhozefarules@gmail\.com\fR> .SH "REPORTING BUGS" <\fIhttps://github\.com/tj/git\-extras/issues\fR> .SH "SEE ALSO" <\fIhttps://github\.com/tj/git\-extras\fR>