LoginSignup
73
39

Git 空コミットを行う

Last updated at Posted at 2020-05-21

〜宣伝〜

個人開発でエンジニア専門マッチングサービスを開発しましたので、是非未経験からエンジニア目指している人!現役エンジニアで教えたい人!使ってみてください!

β版リリース記念キャンペーン中です!

10名様限定、抽選でお好きな技術本1冊プレゼント!
🎉当選者にはメッセージ差し上げます(送付の際に住所はお聞きしません)
詳しくはこちらから↓

https://x.com/dokupro01/status/1796837336145436846

概要

  • Gitにて空コミットを行う方法をまとめる

詳細

  • 下記コマンドをGitによる管理が行われているディレクトリで実行する。

    git commit --allow-empty -m "コミットメッセージ"
    
  • リポジトリ作成時の最初期のコミットなどには下記を実行する。

    git commit --allow-empty -m "first commit"
    

関連記事

73
39
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
73
39