diff --git a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md index 6c929f6e78e9..2e1b04267ced 100644 --- a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md +++ b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md @@ -43,7 +43,7 @@ From the local clone of the repository on a computer, run the following commands ```shell git branch -m OLD-BRANCH-NAME NEW-BRANCH-NAME git fetch origin -git branch -u origin/OLD-BRANCH-NAME NEW-BRANCH-NAME +git branch -u origin/NEW-BRANCH-NAME NEW-BRANCH-NAME git remote set-head origin -a ```