0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitLabでリモートブランチ名の変更【備忘録】

Posted at
  1. ローカル上で branch名変更する。
$ git branch -m <変更前のブランチ名> <変更後のブランチ名>

2. リモートの対象branchを削除する。

$ git push --delete origin <変更前のブランチ名>

3. 名称を変更したローカルbranchをプッシュする。

$ git push origin <変更後のブランチ名>
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?