Re: Volume of commits
- From
Joshua N Pritikin <jpritikin@pobox.com>
- Date
- Jul 12, 2007, 16:09 UTC
- Message-ID
- <20070712160906.GP23840@always.joy.eth.net>
- In-Reply-To
- <m3ir8pu133.fsf@pc7.dolda2000.com>
On Thu, Jul 12, 2007 at 04:51:44PM +0200, Fredrik Tolf wrote:
> git-rebase is one of those tools I haven't been looking at so far (I'm > still rather new to Git), so I should probably read through its > manpage.
I was in your shoes but I recently learned rebase. If you want to edit a commit then find the SHA-1 in git log. Then assuming you are on master:
1. git checkout -b tmp SHA-1 2. git commit --amend 3. git checkout master 4. git rebase --onto tmp SHA-1
Both times, use the same SHA-1.