I found a way to accomplish this - it was not elegant, but it really worked - and so far this is the only way to make it work.
Git uses the HOME path to determine where .gitconfig . I was able to execute something like this:
/home/marco/.silly/.gitconfig /home/marco/.stupid/.gitconfig /home/marco/.gitconfig
And when doing Git Commit (which is the only command that requires .gitconfig ), I redefined the home path.
HOME=/home/marco/.silly/ git commit -m "silly configuration"
Then you can use an alias to make it easy
alias sillygit="HOME=/home/marco/.silly/ git" sillygit commit -m "silly stuff"
Marco Ceppi Aug 29 '10 at 15:07 2010-08-29 15:07
source share