Automate setting the default branch name
Opened this issue · 0 comments
abea commented
If the script runs something like git remote show origin | awk '/HEAD branch/ {print $NF}' it could retrieve the default branch name. That could replace the need to have a
--branchoption. Though the default branch might still not always be the right one to use, so the
--branch` option may still be necessary.