Most Useful Git Commands
Most Useful Git Commands
1. Basic Setup
- git init
- git status
Stages a specific file for commit. Use git add . to stage all files.
- git diff
Shows the changes in your working directory compared to the last commit.
Shows the changes between the staging area and the last commit.
- git branch
Lists all branches in the repository.