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

Re: Can a note be pushed to origin?

From
Carlisle T. Hamlin <hamlin.carlisle@gmx.com>
Date
Oct 2, 2024, 01:37 UTC
Message-ID
<98470a2b-9a5c-4a22-a913-5098185afb65@gmx.com>
In-Reply-To
<20240925122918.1719619615FF@thunderbird.smith.home>
You betcha.

Add to the 'origin' entry in the config file specific to your local repository:

fetch = +refs/notes/*:refs/notes/* push = *refs/notes/*:refs/notes/*

Just be aware that other developers will remain blissfully unaware of your notes unless they either expressly fetch notes for themselves, or replicate your config setup as regards notes.

Good luck!
On 9/25/24 05:29, Stephen Steves Linda Smith wrote:
Show 10 quoted lines
> In a project that I am working on, some metadata is currently embedded in some
> source files.  The question was asked yesterday if there is a way to move that
> metadata a git specific file and link it to the source file or commit.
>
> I remembered that git has notes which can be used to add such data to a
> commit, but I don't believe that such metadata gets pushed to origin nor
> fetched from origin but another user.
>
> Is there a currently implemented way to do something like this?
>
Previous: Stephen Steves Linda SmithNext: Carlisle T. Hamlin
Message 2 of 3 in “Can a note be pushed to origin?”
  1. Stephen Steves Linda SmithSep 25, 2024
  2. Carlisle T. HamlinOct 2, 2024
  3. Carlisle T. HamlinOct 2, 2024

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.