1. git diff

Shows the difference between two commits or between your current changes and the last commit.

git diff commit1 commit2

2. git log

Displays the list of commits made in the project along with commit ID, author, and message.

git log

3. git clone

Copies a remote repository to your local machine.

git clone https://github.com/Yugeshwaran-gm/24MCR126.git

4. git pull

Fetches changes from the remote repository and merges them into your current branch.

git pull

5. git push

Sends your local commits to the remote repository so others can see your work.

git push

6. git blame

Shows which commit and author last modified each line of a file.

git blame

7. Merge Conflict

Happens when Git cannot automatically merge changes between branches (e.g., two people edited the same line). You must manually fix the conflict and then commit the changes.

8. git checkout -b new_branch

Creates a new branch and switches to it.

git checkout -b feature-24MCR126

9. .gitignore

A file that tells Git which files or folders to ignore. For example, to ignore png and pkl, you would write:

*.png
*.pkl

Image description

Image description

Image description