git tips - noteman1/wiki GitHub Wiki

git 최신 수정 순으로 브랜치 보여주기, 5개 까지만

$ git for-each-ref --sort=-committerdate --format="%(refname:short) %(committerdate:short) %(subject)" refs/remotes/ | head -n 5

브라우저로 github 원격 repo 열기

$ open $(git remote get-url origin | sed 's/[email protected]:/https:\/\/github.com\//' | sed 's/\.git$//')