1. git diff:
Shows the differences between files in your working directory and the index (staging area).
Command:
git diff
2. git log
Displays the commit history of the current branch with details
Command:
git log
3. git clone
Clones an existing remote Git repository into a local directory.
Command:
git clone https://github.com/bhavanasBS/24MCR011.git
- git fork Creates a personal copy of someone else's repository into your GitHub account.
5.git pull
Fetches and integrates changes from the remote repository into the current branch.
Command:
git pull origin main
6. git push
Sends committed changes to a remote repository like GitHub.
Command:
git push origin main
7. git blame
Shows who last modified each line of a file and when.
Command:
git blame 24MCR011.txt
8.git merge
Occurs when changes from different branches conflict during a merge.
Command:
git merge feature-branch
9. git ignore
Used to exclude files and directories from version control by specifying them in a .gitignore file.


Top comments (0)