Skip to content
Snippets Groups Projects
Verified Commit cb912cf7 authored by anarcat's avatar anarcat
Browse files

rephrase

here we explain the command we'll run on a separate line for those
diagonal-readers.
parent accbea7a
No related branches found
No related tags found
No related merge requests found
......@@ -476,9 +476,10 @@ GitLab remotes, where it "un-protects" and "re-protects" the branch.
You should run the script with an account that has "Maintainer" or
"Owner" access to GitLab, so that it can do the above GitLab API
changes. You will then need to provide an [access token](https://gitlab.torproject.org/-/profile/personal_access_tokens) through
the `GITLAB_PRIVATE_TOKEN` environment variable. So, for example, this
will rename the `master` branch to `main` on the local and remote
repos:
the `GITLAB_PRIVATE_TOKEN` environment variable.
So, for example, this will rename the `master` branch to `main` on the
local and remote repos:
GITLAB_PRIVATE_TOKEN=REDACTED git-branch-rename-remote
......@@ -491,13 +492,15 @@ on the commandline as well. For example, this will rename the
The command can also be used to fix *other* repositories so that they
correctly rename their local branch too. In that case, the GitLab
repository is already up to date, so there is no need for an access
token, and just running this command will rename `master` to `main` on
the local repo, including remote tracking branches:
token.
Other users, then can just run this command will rename `master` to
`main` on the local repo, including remote tracking branches:
git-branch-rename-remote
However, there are a few extra steps and considerations to make when
changing the name of a heavily used branch.
Keep in mind that there may be a few extra steps and considerations to
make when changing the name of a heavily used branch, detailed below.
### Modifying open Merge Requests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment