From: Dan Pristupov Date: Thu, 18 Aug 2022 14:30:15 GMT Subject: Re: [Question] How to know which branch(ref) is the latest updated branch? 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