title: How to rebase (squeeze) last commits to master and change commit message
body: <p>In GitI have following situation:</p>
  
  <pre><code>o "ok" b6ca869   [my_branch*]
  |
  o "ok" 479d27c
  |
  o "ok" c80fad5
  |
  o "ok" 8f7fe87
  |
  o "master commit message" [master][remotes/origin/master]
  </code></pre>
  
  <p>I want to squeeze those 4 "ok" commits to and furthermore change the message</p>
  
  <pre><code>o "my_branch commit message"    [my_branch*]
  |
  o "master commit message" [master][remotes/origin/master]
  </code></pre>
  
  <p>So what I do is</p>
  
  <pre><code>git rebase --interactive master
  </code></pre>
  
  <p>And GNU nano (I'm on Ubuntu) editor is opened</p>
  
  <pre><code>GNU nano 2.2.2             File: /home/.git/modules/src/android/frameworks/base/rebase-merge/git-rebase-todo                                
  
  pick 8f7fe87 ok
  pick c80fad5 ok
  pick 479d27c ok
  pick b6ca869 ok
  
  # Rebase aeedb8f..b6ca869 onto aeedb8f
  #
  # Commands:
  #  p, pick = use commit
  #  r, reword = use commit, but edit the commit message
  #  e, edit = use commit, but stop for amending
  #  s, squash = use commit, but meld into previous commit
  #  f, fixup = like "squash", but discard this commit's log message
  #  x, exec = run command (the rest of the line) using shell
  #
  # These lines can be re-ordered; they are executed from top to bottom.
  #
  # If you remove a line here THAT COMMIT WILL BE LOST.
  #
  # However, if you remove everything, the rebase will be aborted.
  #
  # Note that empty commits are commented out
  </code></pre>
  
  <p><strong>As I understand I have to edit this file, but actually I don't know how.</strong></p>