Hi All, welcome to the second part of our git series. Let’s dive into how we can install and use git locally.
Installation and Setup
Git can be installed in Windows, Linux, and Mac Os. In this blog, we will look into installing in windows.
Download and install Git for windows. It’s recommended that you stick with the defaults selected during the installation.
Once installed, you’ll be able to use Git from the command prompt or PowerShell.
After installing, try to run git from the command prompt or Powershell.
Add a git Bash in the windows terminal and include the below values under the windows terminal settings list.
"startingDirectory" : "~"
When you start working, the git needs to capture who is performing the changes. To achieve this, we have to configure our git.
git config --global user.name "User Name"
git config --global user.email "email"
You can also change the default editor.
git config --global core.editor "notepad"
If you want to set up any editor of your choice, you can include the editor's execution file.
git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe'## VS code
git config --global core.editor "code --wait"
To print the details of the entire configuration setup of the git.
git config --list
git config -l
We have set up our git; in upcoming parts, we will take you deeper into git….Cheers!