Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - Removing or editing an alias

I was looking for a way to edit or remove an alias in git. I found a solution to get every alias using listing every alias in git. Is there any way of doing it?

like image 299
yash Avatar asked Aug 06 '26 08:08

yash


1 Answers

To remove an alias, use unset

git config --global --unset alias.trololo

Then to edit it, simply add it again

git config --global alias.trololo checkout

Or you can simply edit the .gitconfig file

Source

https://github.com/githubtraining/zzz_deprecated-feedback/issues/24

like image 96
Richard Hamilton Avatar answered Aug 09 '26 00:08

Richard Hamilton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!