Git Install
To install git you can visit git official site https://git-scm.com/
After download git, Install it on your system. after installing you can see Git Bash and Git GUI in your device.
You can use both Git Bash and Git GUI to use git fracture.
Git GUI is a Graphical User Interface for git you can use all git activity by clicking on respective button on this Interface.
Git Bash is an acronym for Bourne Again Shell. A command line interface where you can run git commands.
In this tutorial we will learn git commands and will see how to use git with commands.
Git Bash
To check git version and verify git is installed.
> git --version
git version 2.42.0.windows.2
> git -v
git version 2.42.0.windows.2
Configure Git / Set User and Email in Git
Now you need to configure you git user and email.
You need to run below two commands to set user and email.
> git config --global user.name "soronix-user"
> git config --global user.email "soronix@example.com"
Now we will create our project folder and will connect it with git
Create a folder and name project and go to project folder and run below command.
> git init
git init command is use to initialise and create a git Repository.