Installing Git :
To use features of Git; It should installed on your computer.
You can check if "Git" is already installed on your computer or not by "git --version" command (for Linux and macOS). Windows users can check it in Programs and Features.
If "Git" is not installed; then you can install it from its official website.
Setting user's identity :
When you install Git on your computer; the first thing you should do is setting your identity (name and email). The git config command is used to set user's name and email.
For every git commit users identity is stored along with it.
To use features of Git; It should installed on your computer.
You can check if "Git" is already installed on your computer or not by "git --version" command (for Linux and macOS). Windows users can check it in Programs and Features.
If "Git" is not installed; then you can install it from its official website.
Setting user's identity :
When you install Git on your computer; the first thing you should do is setting your identity (name and email). The git config command is used to set user's name and email.
To set name and email; following commands are used :
git config --global user.name "Ajay Salunkhe"
git config --global user.email "mail2ajaysalunkhe123@gmail.com"
git config --global user.email "mail2ajaysalunkhe123@gmail.com"
To view the configuration following command is used :
git config --list



No comments:
Post a Comment