Full width home advertisement

IT Sharing

Travel the world

Climb the mountains

Post Page Advertisement [Top]

 


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 branch

git for-each-ref --sort=committerdate --format='%(committerdate) %09 %(authorname) %09 %(refname)' refs/remotes | grep <your username>

For example my username is: tinhtrinh

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

Bottom Ad [Post Page]