I am working on a project and we are using git. I would like to delete the branches with are merged. But before that i would like to list the branches, so that i can review once. If it looks good to me then delete the branches.
I have seen some script which deletes the merged branches but i want to see the list of branches before performing delete operation.
git branch -r --merged | grep origin | grep -v '>' | grep -v master | sed
's/origin\///' | xargs git push origin --delete
如果要可视化分支,请使用git log:
git log --oneline --graph --all --decorate=short
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.