git diff
Description:
Shows the differences between files in your working directory and the index (staging area).
Command:
git diff

git log
Description:
Displays the commit history of the current branch with details such as commit ID, author, and date.
Command:
git log

git clone


git fork
Description:
Creates a personal copy of someone else's repository into your GitHub account.
git pull
Description:
Fetches and integrates changes from the remote repository into the current branch.
Command:
git pull origin main

git push
Description:
Sends committed changes to a remote repository like GitHub.
Command:
git push origin main


git blame
Description:
Shows who last modified each line of a file and when.
Command:
git blame filename


git merge conflict
Description:
Occurs when changes from different branches conflict during a merge.
Command to simulate:
Make conflicting changes in two branches
git merge feature-branch

git branch
Description:
Lists existing branches or creates a new one.
Command:
git branch
To create a new branch
git branch new-branch

git ignore
Description:
Used to exclude files and directories from version control by specifying them in a .gitignore file.
Command:
Create or edit .gitignore file and add the filenames or patterns to exclude.