<commit_before>---
layout: post
title: "interactive rebase status"
category: intermediate
---

With "git 2.6": https://github.com/git/git/blob/v2.6.0/Documentation/RelNotes/2.6.0.txt it's now easier than ever to keep track of your work during an interactive rebase.

Previously, if you were rebasing interactively and had hit a conflict or stopped to reword a commit, git status would look like this:

<pre>
$ git rebase -i HEAD~5
$ git status
rebase in progress; onto 0927cd6
You are currently rebasing branch 'testbranch' on '0927cd6'.
  (fix conflicts and then run "git rebase --continue")
</pre>

This only tells you what branch you started with and the target of your rebase. If you want to get information about which commit you'vestopped on, you need to turn to <pre>git log</pre>.

With the release of 2.6, git status now produces much more helpful output that *reminds you what you were doing*. It includes which rebase commands have finished already, and what's still left to do.

<pre>
$ git rebase -i HEAD~5
$ git status
interactive rebase in progress; onto '0927cd6'

Last commands done (2 done):
  pick f47cc4d Style edits
  pick 903d58c Post about techcrunch article
  edit 8cd01c4 Limit width of post content

Next commands to do (1 remaining commands):
  pick 6aa9082 Delete zero-sized files
<commit_msg>Fix link to git release notes<commit_after>---
layout: post
title: "interactive rebase status"
category: intermediate
---

With "git 2.6":https://github.com/git/git/blob/v2.6.0/Documentation/RelNotes/2.6.0.txt it's now easier than ever to keep track of your work during an interactive rebase.

Previously, if you were rebasing interactively and had hit a conflict or stopped to reword a commit, git status would look like this:

<pre>
$ git rebase -i HEAD~5
$ git status
rebase in progress; onto 0927cd6
You are currently rebasing branch 'testbranch' on '0927cd6'.
  (fix conflicts and then run "git rebase --continue")
</pre>

This only tells you what branch you started with and the target of your rebase. If you want to get information about which commit you'vestopped on, you need to turn to "git log".

With the release of 2.6, git status now produces much more helpful output that *reminds you what you were doing*. It includes which rebase commands have finished already, and what's still left to do.

<pre>
$ git rebase -i HEAD~5
$ git status
interactive rebase in progress; onto '0927cd6'

Last commands done (2 done):
  pick f47cc4d Style edits
  pick 903d58c Post about techcrunch article
  edit 8cd01c4 Limit width of post content

Next commands to do (1 remaining commands):
  pick 6aa9082 Delete zero-sized files

{'fraction_non_alphanumeric': 0.06910876132930513, 'fraction_numerical': 0.03474320241691843, 'mean_word_length': 4.194117647058824, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6737658', 'n_tokens_mistral': 824, 'n_tokens_neox': 771, 'n_words': 392}