2
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?

CIにバレないようにこっそりpushする

2
Last updated at Posted at 2026-02-03

想定シチュエーション

  • 個人開発で、一日の進捗をとりあえずpushしたいが、テストやビルドが通らないことは分かりきっているので CI は動いてほしくないとき
  • チームメンバーにとりあえずのレビューをもらいたいのでpushしたいが、テストやビルドが通らない...(以下同文)

このコマンドを打っておこう

git commit --allow-empty -m "[skip ci]"
git push origin HEAD

ポイント

  1. Githubの場合、[skip ci] のようなキーワードを含むコミットメッセージをHEADにしてpushすると GitHub Actions の実行をスキップできる。
  2. git commit には --allow-empty というオプションがあり、ステージングが空でもコミットを作成することができるようになる。

参考資料

2
0
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
2
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?