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

Re: direct ref manipulation

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Sep 5, 2010, 23:36 UTC
Message-ID
<20100905233639.GB18103@burratino>
In-Reply-To
<20100905232525.GA494@nibiru.local>
Hi Enrico,
Enrico Weigelt wrote:
> is there already an command for directly manipulating refs
> (eg. set a specific to given object id) ?
$ man git |grep ref
    Do not use replacement refs to replace git objects. See git-replace(1) for more information.
See the references above to get started using git. The following is probably more detail than necessary
    Move objects and refs by archive.
    Download objects and refs from another repository.
    Update remote refs along with associated objects.
    (deprecated) Recover lost refs that luckily have not yet been pruned.
git-pack-refs(1)
git-reflog(1)
    Manage reflog information.
    Create, list, delete refs to replace objects.
move objects and references between repositories.
git-symbolic-ref(1)
    Read and modify symbolic refs.
git-update-ref(1)
    Update the object name stored in a ref safely.
git-for-each-ref(1)
    Output information on each ref.
    List references in a remote repository.
git-show-ref(1)
    List references in a local repository.
git-check-ref-format(1)
    Ensures that a reference name is well formed.
...
Perhaps you are looking for git-update-ref.

Hope that helps, Jonathan

Previous: Enrico WeigeltNext: Nicolas Pitre
Message 2 of 3 in “direct ref manipulation”
  1. Enrico WeigeltSep 5, 2010
  2. Jonathan NiederSep 5, 2010
  3. Nicolas PitreSep 6, 2010

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.