Sometimes you need to find/get all your branches local/remote but don't know how to deal with it. This post will help you
Get all branches local/remote
git for-each-ref --sort=committerdate --format='%(committerdate) %09 %(authorname) %09 %(refname)' | grep <your username>
Use this one for only remote branchgit for-each-ref --sort=committerdate --format='%(committerdate) %09 %(authorname) %09 %(refname)' refs/remotes | grep <your username>
git for-each-ref --sort=committerdate --format='%(committerdate) %09 %(authorname) %09 %(refname)' | grep tinhtrinh
git for-each-ref --sort=committerdate --format='%(committerdate) %09 %(authorname) %09 %(refname)' refs/remotes | grep tinhtrinh
Không có nhận xét nào:
Đăng nhận xét