title: Git rebase process gets stuck with detached head
body: <p>I'm trying on a certain project to reword the penultimate commit to fix a typo by running <code>git rebase -i HEAD~3</code>, (using the "nano" editor) then changing the default <code>pick</code> option of that commit to <code>r</code> or <code>reword</code> (on the initial rebase file window), and, without modifying anything else. I'm doing it on the <code>master</code> branch, if useful.</p>
  
  <p>As soon as I save the file, Git, instead of showing me the next rebase window to pick a new name for that commit as usual, it puts itself and informs me of a detached HEAD state with that commit, that is also shown upon <code>git status</code> command from then on, until I type <code>git checkout master</code>.</p>
  
  <p>No matter how many times I try, the same thing happens.</p>
  
  <p>Additional note: I had previously changed the used editor to "nano" by running the single command: <code>git config --global core.editor nano</code></p>
  
  <p>EDIT: As requested, this is the message that Git gives me when I save the TODO list:</p>
  
  <blockquote>
    <p>adrian$ git rebase -i HEAD~1</p>
    
    <p>Note: checking out 'da91bbcedc78cb2ebcaa9dc51f38c8d0a550195d'.</p>
    
    <p>You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.</p>
    
    <p>If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:</p>
    
    <p>git checkout -b </p>
    
    <p>HEAD is now at da91bbc... Test message</p>
    
    <p>This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
    could not detach HEAD</p>
  </blockquote>
  
  <p>Output after running <code>git rebase --continue</code> at this point:</p>
  
  <blockquote>
    <p>No rebase in progress?</p>
  </blockquote>