git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Feature: checkout and merge
@ 2020-10-12 11:05 Victor Porton
  2020-10-12 15:04 ` Konstantin Tokarev
  0 siblings, 1 reply; 4+ messages in thread
From: Victor Porton @ 2020-10-12 11:05 UTC (permalink / raw)
  To: git

It is a very often need to checkout a branch and them merge the branch
that was before the checkout. Moreover after this is very often needed
to push.

So please add the flags to `checkout`:

1. to merge the old branch immediately after checkout

2. to push after checkout

I repeatedly write:

git checkout stable && git merge main && git push && git checkout main

(I am not subscribed to this mailing list.)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature: checkout and merge
  2020-10-12 11:05 Feature: checkout and merge Victor Porton
@ 2020-10-12 15:04 ` Konstantin Tokarev
  2020-10-12 17:48   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Konstantin Tokarev @ 2020-10-12 15:04 UTC (permalink / raw)
  To: Victor Porton, git



12.10.2020, 14:12, "Victor Porton" <porton@narod.ru>:
> It is a very often need to checkout a branch and them merge the branch
> that was before the checkout. Moreover after this is very often needed
> to push.
>
> So please add the flags to `checkout`:
>
> 1. to merge the old branch immediately after checkout
>
> 2. to push after checkout
>
> I repeatedly write:
>
> git checkout stable && git merge main && git push && git checkout main
>
> (I am not subscribed to this mailing list.)

Why not make a shell script to do this?


-- 
Regards,
Konstantin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature: checkout and merge
  2020-10-12 15:04 ` Konstantin Tokarev
@ 2020-10-12 17:48   ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2020-10-12 17:48 UTC (permalink / raw)
  To: Konstantin Tokarev; +Cc: Victor Porton, git

Konstantin Tokarev <annulen@yandex.ru> writes:

> 12.10.2020, 14:12, "Victor Porton" <porton@narod.ru>:
>> It is a very often need to checkout a branch and them merge the branch
>> that was before the checkout. Moreover after this is very often needed
>> to push.
>>
>> So please add the flags to `checkout`:
>>
>> 1. to merge the old branch immediately after checkout
>>
>> 2. to push after checkout
>>
>> I repeatedly write:
>>
>> git checkout stable && git merge main && git push && git checkout main
>>
>> (I am not subscribed to this mailing list.)
>
> Why not make a shell script to do this?

Sounds like a very sensible suggestion.  "merging and then pushing
immediately after" without any validation step in between is not for
everybody and being able to implement such a custom workflow is why
we have these individual steps as discrete commands.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Feature: checkout and merge
@ 2020-10-12 11:05 Victor Porton
  0 siblings, 0 replies; 4+ messages in thread
From: Victor Porton @ 2020-10-12 11:05 UTC (permalink / raw)
  To: git

It is a very often need to checkout a branch and them merge there the
branch that was before the checkout. Moreover after this is very often
needed to push.

So please add the flags to `checkout`:

1. to merge the old branch immediately after checkout

2. to push after checkout

I repeatedly write:

git checkout stable && git merge main && git push && git checkout main

(I am not subscribed to this mailing list.)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-12 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 11:05 Feature: checkout and merge Victor Porton
2020-10-12 15:04 ` Konstantin Tokarev
2020-10-12 17:48   ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2020-10-12 11:05 Victor Porton

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).