I've read this answer:
https://stackoverflow.com/a/57328204/3541320
But that's unclear to me because it says:
What I need is to delete a branch only when has been merged to a specific branch, in this case, to main
.
What I know is the HEAD branch if the reference branch pointing in .git/HEAD/
but that's not necessary main
, so
How can I do what I need? just with main