Monday, November 30, 2015

Github learning - Hands on

the git config seems to be for the git directory that is initialized 

$git config user.name “Test Name“
error: could not lock config file .git/config: No such file or directory

unless the git init is called, the config cannot be done 

$git init
$git config user.name “Test Name“
$ git config user.email “test.name@gmail.com"


However, if we use the —- global switch, the configuration applies globally 

git config --get --global user.name 

This above command gives the user name that is configured globally. 


References:

No comments:

Post a Comment