It is a version control system and a tool that helps to track changes in the code.
It is popular because :-
1- It is free and open source
2- It is fast and scalable
Functions :-
1- It tracks the history
2- It collaborate with the changes
It is a website or an app that allows developers to store and manage their code and project using git.
A collection of useful Git commands with explanations
1 : git config --global user.name "YOUR NAME" => TO SET USERNAME
2 : git config --global user.email "YOUR EMAIL" => TO SET EMAIL ID
3 : git config --list
1 : git init => TO INITIALIZE NEW REPO
2 : git clone <-COPY LINK-> => CLONING REPO
1 : git status => DISPLAY STATE OF THE CODE
2 : git log => TO CHECK HISTORY
3 : git diff => TO SEE CHANGES
4 : git merge <-BRANCH NAME-> (MERGING BRANCHES)
5 : git fetch
1 : git remote add origin <- LINK->
2 : git remote -v
1 : git add . => EDITING CODE
2 : git add <-file name-> => EDITING CODE
3 : git commit -m "MESSAGE" => COMMITING CHANGES
4 : git push origin main => PUSHING CODE
5 ; git push => PUSHING CODE
1 : git branch => CHECK BRANCH
2 : git branch -M main => RENAME BRANCH
3 : git checkout <-BRANCH NAME-> => NAVIGATE TO OTHER BRANCH
4 : git checkout -b <-NEW BRANCH NAME-> => CREATE NEW BRANCH
5 : git branch -d <-BRANCH NAMED> => DELETE BRANCH
1 : cd = CHANGE DIRECTORY
2 : ls = LIST FILES
3 : ls -a = HIDDEN FILES
4 ; mkdir = MAKE NEW DIRECTORY
Github Repo -> Clone -> Change -> Add -> Commit -> Push