Re: request for documentation about branch surgery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 6, 2009 at 8:30 PM, Elijah Newren<newren@xxxxxxxxx> wrote:
>>  This is achieved by
>>
>>    $ git checkout master
>>    $ git reset --hard E      # Cut the branch "master"
>>    $ git merge released      # Copy commits from branch "released" to "master"
>
> I'm assuming master isn't checked out.  If so, the following is faster:
>  $ git branch -f master E

Sorry, I meant
  $ git branch -f master released
because we want to set master to the tip of the released branch, not to E.

> (If master is checked out, just 'git reset ---hard released')
>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]