Is it possible to create a global git alias in .gitconfig with Aegir? I want to put the following in the global .gitconfig file in order to be able to use this alias in every site (repo).
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short

I can't add this alias using git config --global alias.<alias> <git-command>, because the git-command contains a forbidden syntax.
Where is the global .gitconfig file located?

Comments

Anonymous’s picture

Component: Code » Miscellaneous
steven jones’s picture

Status: Active » Fixed

Have a look at the git config documentation page:
http://www.kernel.org/pub/software/scm/git/docs/git-config.html#FILES

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.