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

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

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

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git