git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: please add link / url to remote - when - git push

From
Michal Suchánek <msuchanek@suse.de>
Date
Oct 30, 2023, 08:52 UTC
Message-ID
<20231030085205.GF6241@kitsune.suse.cz>
In-Reply-To
<20231030063633.GA7451@tb-raspi4>
On Mon, Oct 30, 2023 at 07:36:33AM +0100, Torsten Bögershausen wrote:
Show 33 quoted lines
> 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
Previous: Junio C HamanoNext: Jeff King
Message 4 of 11 in “please add link / url to remote - when - git push”
  1. Alexander MillsOct 29, 2023
  2. Torsten BögershausenOct 30, 2023
  3. Junio C HamanoOct 30, 2023
  4. Michal SuchánekOct 30, 2023
  5. Jeff KingOct 30, 2023
  6. Michal SuchánekOct 30, 2023
  7. Jeff KingOct 30, 2023
  8. Michal SuchánekOct 30, 2023
  9. Jeff KingOct 30, 2023
  10. Michal SuchánekOct 30, 2023
  11. Taylor BlauOct 30, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.