0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitLabでプッシュが上手くいかない時

Posted at

競合が起きてプッシュ出来ない時の強引な解決方法

保護されたブランチに設定されていると、
ローカルのブランチをリモートに強制プッシュするコマンドが使えないので、
GitLabのリポジトリの設定から保護の設定を解除しy

スクリーンショット 2025-02-06 18.46.41.png

ローカルのブランチをリモートに強制プッシュするコマンド

git push origin main --force
0
0
1

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?