GIT setup: basic configuration


After installing Git client it's ready to use right away. However there are few things you may want to consider setting up. Those are things like for example user name and e-mail address.

You can display current config values with the following command:
$ git config --list

Important Note
When setting configuration parameters you can set it either as global or local value. By default you are setting the local value. By using --global param it will be set-up globally which means it will be used for all of your projects unless overridden by a local setting.

Setting user name
$ git config --global "xuser"
$ git config "xuser"

Setting e-mail

$ git config --global
$ git config

That's it.

No comments:

Post a Comment