The git init command is used to initialise a blank repository. It creates a .git folder in the current working directory.
Step 01 -> git init
The git add command is used to add changes in the current directory to the staging area.
Step 02 -> git add .
The git commit is used to save the changes to the local repository. The command helps us keep record of all the changes made.
Step 03 -> git commit -m "commit message"
The git status command is used to display the state of the current repository and the staging area.
Step 04 -> git status
The git merge command is used to itegrate different branches into a single branch.
Step 05 -> git merge branch_name
The git push command is used to upload the content from the local repository to the remote repository.
Step 06 -> git push origin main
The git pull command is used to fetch the new commits and merge them into the local branch.
Step 07 -> git pull https://github.com/Md-Soliman-Ali/Git/blob/main/README.md
Step 07 -> git pull origin main
The git clone command is used to create a copy of the target repository or create a clone in a new directory at a new place.
Step 08 -> git clone https://github.com/Md-Soliman-Ali/Git.git
A branch refers to an independent line of development. The git branch command is used to create, list, rename & delete branches.
Step 09 -> git branch branch_name
The git checkout command works together with the git branch command. The command enables the navigation between the branches
Step 10 -> git checkout branch_name