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?

More than 1 year has passed since last update.

Git rebaseの使い方編

Last updated at Posted at 2021-06-15

目的

  1. 業務効率よく
  2. コミットをまとめたり、コミットメッセージを変更したい

実践をやろうとした背景

carbon というツールを見つけたので、gitのコマンドを書いて画像を出力させてみました。

実践

carbon (1).png

#コマンド確認

edit例

git rebase i HEAD~4
pick 8145f1c 新規作成
edit d90db4a 修正対応
pick 646bf79 削除ファイル
pick 71a6940 Javadocコメント修正

squash例

git rebase i HEAD~4
pick 8145f1c 新規作成
squash d90db4a 修正対応
pick 646bf79 削除ファイル
pick 71a6940 Javadocコメント修正

git commit を --amend 後

git rebase --continue

作成ツール

https://carbon.now.sh

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?