On 16 September 2014 13:45, David Cheney <david.che...@canonical.com> wrote:
> On Tue, Sep 16, 2014 at 7:27 PM, roger peppe <roger.pe...@canonical.com> 
> wrote:
>> On 16 September 2014 09:22, Jonathan Aquilina <jaquil...@eagleeyet.net> 
>> wrote:
>>> If i am not mistaken if you have multiple commits in a branch git has
>>> something built in called git squash. This obviously eliminates the 5 step
>>> process into one merge and one push.
>>
>> I don't see that command. Are you thinking of the "squash"
>> functionality of rebase -i?
>>
>> FWIW, I never run those five steps in sequence together.
>> Usually I just get to a situation where I know that I have all tests
>> passing and I'm up to date with master (for example I've done a merge
>> some time ago, probably before fixing a bunch of tests).
>>
>> Then it's just:
>>
>> $ git reset upstream/master
>> $ git commit -am 'my commit message'
>
> Nice trick, so that resets the underlying branch to master, leaving
> everything you have comitted or merged uncomitted ?

Yes. Specifically, it sets the branch *head* to the same as master - the current
branch name does not change.

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to