Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete all git aliases at once?

Tags:

git

terminal

How can I delete all existing git aliases at once? I tried git config --unset-all ... but was unable to figure out the correct syntax for this command.

like image 605
Oliver Avatar asked Mar 22 '12 09:03

Oliver


People also ask

How do I delete an alias in Linux?

You need to use unalias command on Linux or Unix to remove bash shell aliases. The alias command used to create aliases. It works on bash, ksh, csh and other Unix shells.

Where are git bash aliases?

These aliases were created with the --global flag which means they will be stored in Git's global operating system level configuration file. On linux systems, the global config file is located in the User home directory at /. gitconfig .

How do I use a git Aliase?

The simplest way to add a git alias is by running a command to add the alias to the git global configuration file. For example, running the command git config --global alias. hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" will add the alias git hist .


1 Answers

Have you tried this:

git config [--global] --remove-section alias
like image 183
Pierre Mage Avatar answered Sep 20 '22 16:09

Pierre Mage