Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Interactive rebase off of a point earlier in the history than the commit you need to modify (<code>git rebase -i &lt;earliercommit&gt;</code>). In the list of commits being rebased, change the text from <code>pick</code> to <code>edit</code> next to the hash of the one you want to modify. Then when git prompts you to change the commit, use this:</p> <pre><code>git commit --amend --author="Author Name &lt;email@address.com&gt;" </code></pre> <hr> <p>For example, if your commit history is <code>A-B-C-D-E-F</code> with <code>F</code> as <code>HEAD</code>, and you want to change the author of <code>C</code> and <code>D</code>, then you would...</p> <ol> <li>Specify <code>git rebase -i B</code> (<a href="https://help.github.com/articles/about-git-rebase/#an-example-of-using-git-rebase" rel="noreferrer">here is an example of what you will see after executing the <code>git rebase -i B</code> command</a>) <ul> <li>if you need to edit <code>A</code>, use <code>git rebase -i --root</code></li> </ul></li> <li>change the lines for both <code>C</code> and <code>D</code> from <code>pick</code> to <code>edit</code></li> <li>Once the rebase started, it would first pause at <code>C</code></li> <li>You would <code>git commit --amend --author="Author Name &lt;email@address.com&gt;"</code></li> <li>Then <code>git rebase --continue</code></li> <li>It would pause again at <code>D</code></li> <li>Then you would <code>git commit --amend --author="Author Name &lt;email@address.com&gt;"</code> again</li> <li><code>git rebase --continue</code></li> <li>The rebase would complete.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload