Getting started with Git
In this section, we will proceed with how to use Git, assuming a scenario where you are working in an individual environment and simply building up a history.
Git basics – Begin with a hands-on experience
Before we delve into the details, let’s start with some hands-on experience. It is likely easier to grasp the concept by trying it out rather than just only reading about it at first.
git config – Introduce yourself to Git
Now, there is something you need to do before you start a project. Introduce yourself to Git. To introduce yourself to Git, use the git
config
command:
$ git config --global user.name "John Doe" $ git config --global user.email "john@example.com"
git config
is a command used to set Git configurations at the levels of system, user, and repository. The level system
applies to all users and all repositories. The level global
applies to all repositories of a specific user. The level local...