git unset alias 1

git unset alias

git config --global --unset alias.trololo

Here is what the above code is Doing:
1. git config –global alias.trololo “log –graph –decorate –pretty=oneline –abbrev-commit –all”
– This is creating an alias for the command “log –graph –decorate –pretty=oneline –abbrev-commit –all”
– The alias is called “trololo”
– The alias is global, meaning it will be available in all of your git repositories
2. git trololo
– This is running the command “log –graph –decorate –pretty=oneline –abbrev-commit –all”
– The command is being run in the current directory
3. git config –global –unset alias.trololo
– This is removing the alias “trololo”
– The alias is global, meaning it will be removed from all of your git repositories

Similar Posts