Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@anton-roos
Created June 10, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anton-roos/b0eb11d91aa05814b37006dda38b0d80 to your computer and use it in GitHub Desktop.
Save anton-roos/b0eb11d91aa05814b37006dda38b0d80 to your computer and use it in GitHub Desktop.
Get all latest commits per branch sort by latest commit after git pull.
git pull
echo "Git pull done, fetching timetable..."
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