Skip to contentSkip to conversation

config commands not working _Noobe question

DISCUSSION Greg Ledger 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

after adding git config ‹global user.name Greg Ledger and git config ‹global user.email [email protected], when I run:
source ~/.gitconfig I get

-bash: [user]: command not found
-bash: name: command not found
-bash: email: command not found
-bash: [color]: command not found
-bash: ui: command not found

What gives? (I had to download xcode tools before I could do my first git init

Greg Ledger
Web Developer & E-Marketing Specialist | GLC
847.205.3125
[email protected]
www.glcdelivers.com <http://www.glcdelivers.com>

#1 lore raw
Quoted 3 lines · Greg Ledger

after adding git config ‹global user.name Greg Ledger and git config ‹global user.email [email protected], when I run:
source ~/.gitconfig

The ~/.gitconfig file is not a shell script. You should not source it. It is a text file that is read by Git commands when those commands are run.