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

Re: [Question] How to know which branch(ref) is the latest updated branch?

From
Dan Pristupov <danil@danil.cz>
Date
Aug 18, 2022, 14:30 UTC
Message-ID
<09d5a345-af62-c411-8fb5-b489337ebc36@danil.cz>
In-Reply-To
<2022081818034939145210@oschina.cn>
You can use `for-each-ref` for that. For example:

``` git for-each-ref --count=1 --sort='-authordate' refs/heads ```

https://git-scm.com/docs/git-for-each-ref#_examples has an example how to get 3 recent tags

Previous: lilinchao@oschina.cnNext: Junio C Hamano
Message 2 of 3 in “[Question] How to know which branch(ref) is the latest updated branch?”
  1. lilinchao@oschina.cnAug 18, 2022
  2. Dan PristupovAug 18, 2022
  3. Junio C HamanoAug 18, 2022

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.