In the last post , we discussed git internals to understand Git. In this post we will discuss Git commands, to use Git. I recommend reading the last post, to easily understand the terminologies used here. I’m going to skip the commands to install git as it varies based on the operating system and y. Once you have our machine architecture. After installation following are the commonly used commands. 1. Check Git Version git —-version check and confirm the installation 2. Configure Git You can use the below command to set global configurations for Git. git config --global key “value” . By default, Git doesn’t allow you to commit until it knows who you are. So the first thing to do after installation is, to set the below properties. Preferably globally git config --global user.name “My Name” git config --global user.email “ myemail@email.com ” NOTE . If your present working directory is inside a local git repository, you ...
Explore more at my website