This post assumes that you have git installed as well as have Github Account.
Set Up Git
There are two ways to configure git
1. using command
2. using text editor
1. using command
- easiest way of configuring git is through the git config command.
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
- we can see all of the configuration items that have been set by
git config --list
user.name=Your Name
user.email=youremail@domain.com
2. using text editor
- this configuration information is stored in the configuration file, which you can optionally edit by hand with your text editor
nano ~/.gitconfig
[user]
name = Your Name
email = youremail@domain.com
[use Ctrl + x - to close editor]
There are many other options that you can set, but these are the two essential ones needed. If you skip this step, you'll likely see warnings when you commit to git.
Set Up Git
There are two ways to configure git
1. using command
2. using text editor
1. using command
- easiest way of configuring git is through the git config command.
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
- we can see all of the configuration items that have been set by
git config --list
user.name=Your Name
user.email=youremail@domain.com
2. using text editor
- this configuration information is stored in the configuration file, which you can optionally edit by hand with your text editor
nano ~/.gitconfig
[user]
name = Your Name
email = youremail@domain.com
[use Ctrl + x - to close editor]
There are many other options that you can set, but these are the two essential ones needed. If you skip this step, you'll likely see warnings when you commit to git.
No comments:
Post a Comment