On Tue, Sep 25, 2012 at 12:01 PM, Chris Stankevitz
<chrisstankev...@gmail.com> wrote:

> At this point, I'd be happy with whichever method will be easiest for you to
> type on this list.  Currently I am using the series of laborious steps in my
> original post.

I would just do this:

git checkout b            # Switch to the branch we want to change
git reset --hard a        # Make 'b' point where 'a' points, forcing
all files to match 'a'
git reset --soft HEAD@{1} # Move the 'b' pointer back, but leave the
files as they were
git commit                # Index and working tree are the same as in 'a'


Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to