Customizing Git - Git Configuration
If u are familiar with the unix terminal and the famous .bashrc well that's almost the same.
In your home folder u should see a file called .gitconfig.
Open it and modify as u wish. Here's mine:
Open it and modify as u wish. Here's mine:
As u can see u can define an alias like in .bashrc and most important the last command provide all the alias in the config file if reequested with the alias command (as .bashrc).[user].......[core]autocrlf = input[alias]adda = add --allco = commitch = checkoutst = status#logl = log --oneline --decorate --graph --branches --remotes -20ll = log --oneline --decorate -- graph --statls = log --oneline --decorate --graph --branches --remotes --simplify-by-decoration#list aliasesalias = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
Thanks to Fabrizio Monti (@delphaber)
0 commenti