github - How to get git to display the most recent n commits from all online branches -
i new git. have repository on git hub.com. committed new file github repository. when check last commit changes using log
command shows commits on local repository. github repository collaborative repository. question have check recent commits if others commits file. thanks.
once fetch
remote repository, have commits in local repo. have branches of remote repo: they're prefixed origin/
(if remote called origin). can list them git branch -r
so can this:
git fetch origin n=3 #say want see last 3 commits of each remote branches remote_branch in $(git branch -r | grep origin); echo "showing branch $remote_branch" git log -$n $remote_branch done
that if want stick command line. otherwise might easier use gitk:
sudo apt-get install gitk #or other way install depending on platform git fetch gitk --all # flag --all implies "show every branches"
Comments
Post a Comment