I use `git branch --merged origin/HEAD` and then prune local branches using that -- github.com/asottile/scratch/blob/master/python/prune-remote-branches
--prune-tags is more risky, as tags only have one namespace (unlike branches) - it will delete local tags: -P, --prune-tags Before fetching, remove any local tags that no longer exist on the remote if --prune is enabled. This option should be used more carefully, unlike --prune it will remove any local references (local tags) that have been created. This option is a shorthand for providing the explicit tag refspec along with --prune, see the discussion about that in its documentation.
I couldn't understand this for an entire day until I watched it and it was clear as day. Thank you!
man, your content is massively underrated ! i cannot believe your "antony explains" videos have sub 1k views. Please carry on !
Thank you, clear explanation. You helped me :)
branch avenue - is by Andrews
nice content really helped me
Thanks for this one!
So feature1, still exists locally and it is impossible to delete the local file with prune command.
I use `git branch --merged origin/HEAD` and then prune local branches using that -- github.com/asottile/scratch/blob/master/python/prune-remote-branches
good explanation , could you also pls explain --prune-tags, does it work similary?
--prune-tags is more risky, as tags only have one namespace (unlike branches) - it will delete local tags:
-P, --prune-tags
Before fetching, remove any local tags that no longer exist on the
remote if --prune is enabled. This option should be used more
carefully, unlike --prune it will remove any local references
(local tags) that have been created. This option is a shorthand for
providing the explicit tag refspec along with --prune, see the
discussion about that in its documentation.
what is that CLI you can draw stuff on?
oh, that's my text editor babi! github.com/asottile/babi
Have you ever made any online courses? I'd happily pay good money for them!
I haven't yet! mostly just building youtube and twitch content at the moment but I'll consider it!