Get a list of Git branches ordered by most recent commit, use this to check which branch gets updated
git for-each-ref --sort=-committerdate refs/heads/
Git