DEV Community

Discussion on: Remove all your local git branches but keep main

Collapse
 
goodevilgenius profile image
Dan Jones

I second using an alias. If you forget the alias you set, you can do git config -l to list all config values, including aliases, and just scan through them.

Or, if you remember the alias name, you can do get config --get alias.alias-name to show what it's an alias of.

Thread Thread
 
pandademic profile image
Pandademic • Edited

thanks , I didn't know that... It's useful for more complicated aliases.