Skip to main content

Since you do not want to push the branch to a remote server, this example will be useful:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

For more information, you can visit Locally and Remotely Renaming a Branch in GitLocally and Remotely Renaming a Branch in Git.

Since you do not want to push the branch to a remote server, this example will be useful:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

For more information, you can visit Locally and Remotely Renaming a Branch in Git.

Since you do not want to push the branch to a remote server, this example will be useful:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

For more information, you can visit Locally and Remotely Renaming a Branch in Git.

Active reading. [Dressed the naked link.]
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

SinceyouSince you do not want to push the branch to a remote server, this examleexample will be usefulluseful:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

git branch -m my-hot-feature feature-15

forFor more infoinformation, you can visit http://www.benjaminlhaas.com/blog/locally-and-remotely-renaming-branch-gitLocally and Remotely Renaming a Branch in Git.

Sinceyou do not want to push the branch to a remote server this examle will be usefull:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

for more info you can visit http://www.benjaminlhaas.com/blog/locally-and-remotely-renaming-branch-git

Since you do not want to push the branch to a remote server, this example will be useful:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

For more information, you can visit Locally and Remotely Renaming a Branch in Git.

Source Link
Tanah
  • 459
  • 4
  • 8

Sinceyou do not want to push the branch to a remote server this examle will be usefull:

Let's say you have an existing branch called "my-hot-feature," and you want to rename it to "feature-15."

First, you want to change your local branch. This couldn't be easier:

git branch -m my-hot-feature feature-15

for more info you can visit http://www.benjaminlhaas.com/blog/locally-and-remotely-renaming-branch-git