RSS Amplifier

Winston Cooke · Feb 19, 2024

git recent

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

recent branches I came across 1 a useful git alias that lists the 10 most recent branches: git config - -global alias.recent-branches ' !git branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)" | head -10 ' Which can be called using git recent-branches . recent commits This inspired me to make a similar alias to list the 10 most recent commits: git config - -global…

recent branches</h2>

I came across1</a></sup> a useful git alias that lists the 10 most recent branches:</p>

git</span> config</span> -</span>-global</span> alias.recent-branches</span> '</span>!git branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)" | head -10</span>'</span></span></code></pre>

Which can be called using git recent-branches</code>.</p>

recent commits</h2>

This inspired me to make a similar alias to list the 10 most recent commits:</p>

git</span> config</span> -</span>-global</span> alias.recent-commits</span> '</span>!git log --pretty=format:"%ar %x09 %Creset %h %x09 %s <%an>" -n 10 --no-merges --no-decorate</span>'</span></span></code></pre>

Which can be called using git recent-commits</code>.</p>

recent changes</h2>

Which then inspired me to make an alias to list a graph of the 10 most recent commits:</p>

git</span> config</span> -</span>-global</span> alias.recent</span> '</span>!git log --branches --remotes --tags --color=always --all -n 10 --format="%C(auto)%h %C(bold red)(%S)%Creset %Cgreen%ar%Creset %s %C(bold blue)<%an>%Creset" --graph --decorate</span>'</span></span></code></pre>

Which can be called using git recent</code>.</p>


  1. https://bernsteinbear.com/git/</a> ↩</a> </li> </ol>

Read on /notes/git-recent/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.