# please add link / url to remote - when - git push

11 messages from 2023-10-29 to 2023-10-30. Participants: Alexander Mills, Torsten Bögershausen, Junio C Hamano, Michal Suchánek, Jeff King, Taylor Blau.
Thread: https://gitlist.dev/t/60444

## Alexander Mills, 2023-10-29 23:15

Subject: please add link / url to remote - when - git push
Message-ID: <CA+KyZp5mwGJ6YOvjKtfnDMDb9ci3vSq5KNUep6-8EfkHNaxREg@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BKyZp5mwGJ6YOvjKtfnDMDb9ci3vSq5KNUep6-8EfkHNaxREg%40mail.gmail.com

```
When a feature branch is pushed, we get a link in the console to go to
remote, however when I push directly to main/master, no such link, eg:

ˋˋˋ
alex.mills@alex node-be % git push
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 12 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
remote: Bypassed rule violations for refs/heads/main:
remote:
remote: - Changes must be made through a pull request.
remote:
To github.com:elx-onlinx/beautychat-chatcards.git
   ffe1e05..bb7b0ef  main -> main
ˋˋˋ

Having the link in the console saves me tremendous time and is
extremely effective/efficient. Can we get links in the console plz?

-alex

-- 
Alexander D. Mills
Mobile phone (737) 281-4824
https://linkedin.com/in/alexanderdmills

```

## Torsten Bögershausen, 2023-10-30 06:36

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030063633.GA7451@tb-raspi4>
URL: https://gitlist.dev/e/20231030063633.GA7451%40tb-raspi4
In-Reply-To: <CA+KyZp5mwGJ6YOvjKtfnDMDb9ci3vSq5KNUep6-8EfkHNaxREg@mail.gmail.com>

```
On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> When a feature branch is pushed, we get a link in the console to go to
> remote, however when I push directly to main/master, no such link, eg:
>
> ˋˋˋ
> alex.mills@alex node-be % git push
> Enumerating objects: 20, done.
> Counting objects: 100% (20/20), done.
> Delta compression using up to 12 threads
> Compressing objects: 100% (10/10), done.
> Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
> Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
> remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
> remote: Bypassed rule violations for refs/heads/main:
> remote:
> remote: - Changes must be made through a pull request.
> remote:
> To github.com:elx-onlinx/beautychat-chatcards.git
>    ffe1e05..bb7b0ef  main -> main
> ˋˋˋ
>
> Having the link in the console saves me tremendous time and is
> extremely effective/efficient. Can we get links in the console plz?
>

If we look very carfully at the log, we see that all the messages prefixed
with "remote:" come from the remote (git server).
In your case github. Other "Git repo servers" like gitlab or bitbucket have
the same feature.

Git itself, running on your local computer, does not produce this links.
If you really want to push directly to the main branch and want to see the
a link, then you better talk to the gihub folks.

```

## Junio C Hamano, 2023-10-30 06:55

Subject: Re: please add link / url to remote - when - git push
Message-ID: <xmqqa5s0egzn.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqa5s0egzn.fsf%40gitster.g
In-Reply-To: <20231030063633.GA7451@tb-raspi4>

```
Torsten Bögershausen <tboegi@web.de> writes:

> On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
>> When a feature branch is pushed, we get a link in the console to go to
>> remote, however when I push directly to main/master, no such link, eg:
>>
>> ˋˋˋ
>> alex.mills@alex node-be % git push
>> Enumerating objects: 20, done.
>> Counting objects: 100% (20/20), done.
>> Delta compression using up to 12 threads
>> Compressing objects: 100% (10/10), done.
>> Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
>> Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
>> remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
>> remote: Bypassed rule violations for refs/heads/main:
>> remote:
>> remote: - Changes must be made through a pull request.
>> remote:
>> To github.com:elx-onlinx/beautychat-chatcards.git
>>    ffe1e05..bb7b0ef  main -> main
>> ˋˋˋ
>>
>> Having the link in the console saves me tremendous time and is
>> extremely effective/efficient. Can we get links in the console plz?
>>
>
> If we look very carfully at the log, we see that all the messages prefixed
> with "remote:" come from the remote (git server).
> In your case github. Other "Git repo servers" like gitlab or bitbucket have
> the same feature.
>
> Git itself, running on your local computer, does not produce this links.
> If you really want to push directly to the main branch and want to see the
> a link, then you better talk to the gihub folks.

Thanks for a good suggestion.

Another piece of advice we may want to give is that a good bugreport
should illustrate both good and bad case.  With only the above one,
I couldn't guess that the complaint was about lack of information
that comes over the wire from remote, *exactly* because the report
failed to show the good case that shows the information and made the
readers guess what thing that does not exist in the output is being
complained about.  A good bugreport should not force readers guess.

If the report had both good and bad cases, it would have helped
readers help the reporter much easier.

Thanks.

```

## Michal Suchánek, 2023-10-30 08:52

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030085205.GF6241@kitsune.suse.cz>
URL: https://gitlist.dev/e/20231030085205.GF6241%40kitsune.suse.cz
In-Reply-To: <20231030063633.GA7451@tb-raspi4>

```
On Mon, Oct 30, 2023 at 07:36:33AM +0100, Torsten Bögershausen wrote:
> On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> > When a feature branch is pushed, we get a link in the console to go to
> > remote, however when I push directly to main/master, no such link, eg:
> >
> > ˋˋˋ
> > alex.mills@alex node-be % git push
> > Enumerating objects: 20, done.
> > Counting objects: 100% (20/20), done.
> > Delta compression using up to 12 threads
> > Compressing objects: 100% (10/10), done.
> > Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
> > Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
> > remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
> > remote: Bypassed rule violations for refs/heads/main:
> > remote:
> > remote: - Changes must be made through a pull request.
> > remote:
> > To github.com:elx-onlinx/beautychat-chatcards.git
> >    ffe1e05..bb7b0ef  main -> main
> > ˋˋˋ
> >
> > Having the link in the console saves me tremendous time and is
> > extremely effective/efficient. Can we get links in the console plz?
> >
> 
> If we look very carfully at the log, we see that all the messages prefixed
> with "remote:" come from the remote (git server).
> In your case github. Other "Git repo servers" like gitlab or bitbucket have
> the same feature.
> 
> Git itself, running on your local computer, does not produce this links.
> If you really want to push directly to the main branch and want to see the
> a link, then you better talk to the gihub folks.

On the other hand, option to NOT display those remote messages is also
missing. At least with git 2.35 they are displayed even when -q argument
is given.

Thanks

Michal

```

## Jeff King, 2023-10-30 09:06

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030090626.GA84866@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20231030090626.GA84866%40coredump.intra.peff.net
In-Reply-To: <20231030085205.GF6241@kitsune.suse.cz>

```
On Mon, Oct 30, 2023 at 09:52:05AM +0100, Michal Suchánek wrote:

> > If we look very carfully at the log, we see that all the messages prefixed
> > with "remote:" come from the remote (git server).
> > In your case github. Other "Git repo servers" like gitlab or bitbucket have
> > the same feature.
> > 
> > Git itself, running on your local computer, does not produce this links.
> > If you really want to push directly to the main branch and want to see the
> > a link, then you better talk to the gihub folks.
> 
> On the other hand, option to NOT display those remote messages is also
> missing. At least with git 2.35 they are displayed even when -q argument
> is given.

That is also up to GitHub to fix on the server side:

  https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/

-Peff

```

## Michal Suchánek, 2023-10-30 09:30

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030093023.GG6241@kitsune.suse.cz>
URL: https://gitlist.dev/e/20231030093023.GG6241%40kitsune.suse.cz
In-Reply-To: <20231030090626.GA84866@coredump.intra.peff.net>

```
On Mon, Oct 30, 2023 at 05:06:26AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 09:52:05AM +0100, Michal Suchánek wrote:
> 
> > > If we look very carfully at the log, we see that all the messages prefixed
> > > with "remote:" come from the remote (git server).
> > > In your case github. Other "Git repo servers" like gitlab or bitbucket have
> > > the same feature.
> > > 
> > > Git itself, running on your local computer, does not produce this links.
> > > If you really want to push directly to the main branch and want to see the
> > > a link, then you better talk to the gihub folks.
> > 
> > On the other hand, option to NOT display those remote messages is also
> > missing. At least with git 2.35 they are displayed even when -q argument
> > is given.
> 
> That is also up to GitHub to fix on the server side:
> 
>   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/

If the server did not reject the push the messages it returns could be
considered informational.

Not sure if the final status of the push is available or of the
rejection is only noted in these messages, though.

Thanks

Michal

```

## Jeff King, 2023-10-30 09:39

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030093919.GF84866@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20231030093919.GF84866%40coredump.intra.peff.net
In-Reply-To: <20231030093023.GG6241@kitsune.suse.cz>

```
On Mon, Oct 30, 2023 at 10:30:23AM +0100, Michal Suchánek wrote:

> > > On the other hand, option to NOT display those remote messages is also
> > > missing. At least with git 2.35 they are displayed even when -q argument
> > > is given.
> > 
> > That is also up to GitHub to fix on the server side:
> > 
> >   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/
> 
> If the server did not reject the push the messages it returns could be
> considered informational.

Hmm, yeah, I could perhaps buy that line of argument. Though it's
possible they are "warnings" of the sort that should still be emitted
with "--quiet"; really only the server knows. And note that even "reject
the push" is not necessarily all-or-nothing. The server may accept some
subset of the refs.

But...

> Not sure if the final status of the push is available or of the
> rejection is only noted in these messages, though.

Yes, this is a problem. Those messages are streamed out as we receive
them from the server, and before we get any status report back. I don't
think we'd want to buffer them, as they can be arbitrarily large (and
may even be progress reports that are meant to be shown in real-time).

-Peff

```

## Michal Suchánek, 2023-10-30 09:45

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030094556.GI6241@kitsune.suse.cz>
URL: https://gitlist.dev/e/20231030094556.GI6241%40kitsune.suse.cz
In-Reply-To: <20231030093919.GF84866@coredump.intra.peff.net>

```
On Mon, Oct 30, 2023 at 05:39:19AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 10:30:23AM +0100, Michal Suchánek wrote:
> 
> > > > On the other hand, option to NOT display those remote messages is also
> > > > missing. At least with git 2.35 they are displayed even when -q argument
> > > > is given.
> > > 
> > > That is also up to GitHub to fix on the server side:
> > > 
> > >   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/
> > 
> > If the server did not reject the push the messages it returns could be
> > considered informational.
> 
> Hmm, yeah, I could perhaps buy that line of argument. Though it's
> possible they are "warnings" of the sort that should still be emitted
> with "--quiet"; really only the server knows. And note that even "reject
> the push" is not necessarily all-or-nothing. The server may accept some
> subset of the refs.
> 
> But...
> 
> > Not sure if the final status of the push is available or of the
> > rejection is only noted in these messages, though.
> 
> Yes, this is a problem. Those messages are streamed out as we receive
> them from the server, and before we get any status report back. I don't
> think we'd want to buffer them, as they can be arbitrarily large (and
> may even be progress reports that are meant to be shown in real-time).

Not when the user asked to not show progress.

Thanks

Michal

```

## Jeff King, 2023-10-30 09:54

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030095401.GA848451@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20231030095401.GA848451%40coredump.intra.peff.net
In-Reply-To: <20231030094556.GI6241@kitsune.suse.cz>

```
On Mon, Oct 30, 2023 at 10:45:56AM +0100, Michal Suchánek wrote:

> > Yes, this is a problem. Those messages are streamed out as we receive
> > them from the server, and before we get any status report back. I don't
> > think we'd want to buffer them, as they can be arbitrarily large (and
> > may even be progress reports that are meant to be shown in real-time).
> 
> Not when the user asked to not show progress.

Sure, if you make the buffering behavior dependent on the presence of
"-q". I guess that is not that hard to do, but it does increase the
complexity of the code (you have both a streaming and a buffering code
path).

Anyway, I am not all that convinced this is a fruitful path versus just
fixing the server side. But if you want to look into writing a patch, go
for it.

-Peff

```

## Michal Suchánek, 2023-10-30 10:42

Subject: Re: please add link / url to remote - when - git push
Message-ID: <20231030104251.GK6241@kitsune.suse.cz>
URL: https://gitlist.dev/e/20231030104251.GK6241%40kitsune.suse.cz
In-Reply-To: <20231030095401.GA848451@coredump.intra.peff.net>

```
On Mon, Oct 30, 2023 at 05:54:01AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 10:45:56AM +0100, Michal Suchánek wrote:
> 
> > > Yes, this is a problem. Those messages are streamed out as we receive
> > > them from the server, and before we get any status report back. I don't
> > > think we'd want to buffer them, as they can be arbitrarily large (and
> > > may even be progress reports that are meant to be shown in real-time).
> > 
> > Not when the user asked to not show progress.
> 
> Sure, if you make the buffering behavior dependent on the presence of
> "-q". I guess that is not that hard to do, but it does increase the
> complexity of the code (you have both a streaming and a buffering code
> path).
> 
> Anyway, I am not all that convinced this is a fruitful path versus just
> fixing the server side. But if you want to look into writing a patch, go
> for it.

I will try to bug the forge upstream first.

Thanks

Michal

```

## Taylor Blau, 2023-10-30 15:55

Subject: Re: please add link / url to remote - when - git push
Message-ID: <ZT/SC2EPdaWtzjj+@nand.local>
URL: https://gitlist.dev/e/ZT%2FSC2EPdaWtzjj%2B%40nand.local
In-Reply-To: <CA+KyZp5mwGJ6YOvjKtfnDMDb9ci3vSq5KNUep6-8EfkHNaxREg@mail.gmail.com>

```
Hi Alexander,

On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> Having the link in the console saves me tremendous time and is
> extremely effective/efficient. Can we get links in the console plz?

That link is generated at the remote end (in your case, this is on
GitHub) and then sent over the wire before being printed out with the
"remote:" prefix at your terminal.

The Git project does not itself generate these messages, so you may want
to relay your request to GitHub's support address at <support@github.com>.

Thanks,
Taylor

```
