LoginSignup
0
0

More than 1 year has passed since last update.

gitでcommitをまとめる

Posted at

push済みcommitをまとめる方法

# 直近3コミットをまとめる場合
git rebase -i HEAD~3

# (rebase画面)editor画面で直近1-2コミットを"squash"あるいは"s"にして上書き保存

# (commit画面)新しいコミットメッセージを入力して保存

# force push
git push -f origin master
0
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
0
0