tags:

views:

163

answers:

1

I put the following code to my .gitconfig unsuccessfully

. /Users/Masi/bin/personal

I get the following error

fatal: bad config file line 7 in /Users/Masi/.gitconfig

How can you source an external file in .gitconfig?

+5  A: 

.gitconfig isn't a shell script, it's a list of configuration options for Git. It takes the following form:

[section]
        option = value

You can't "source" another file in .gitconfig.

mipadi
Thank you for your answer!
Masi