Skip to content

Instantly share code, notes, and snippets.

@nirgeier
Last active February 26, 2019 10:11
Show Gist options
  • Save nirgeier/5f7d099a86b0114bc4d680d1e3761c9e to your computer and use it in GitHub Desktop.
Save nirgeier/5f7d099a86b0114bc4d680d1e3761c9e to your computer and use it in GitHub Desktop.
Gti scripts
# Get last commit timestap of all branches in the remote
git fetch --all && for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment