| # | Command | Short Definition (6–10 words) | Example |
|---|---|---|---|
| 176 | git config |
Configures Git username, email, and default settings. | git config --global user.name "Alok" |
| 177 | git init |
Initializes new Git repository in current directory. | git init |
| 178 | git clone |
Downloads remote repository into local machine. | git clone https://github.com/user/repo.git |
| 179 | git status |
Displays repository status and pending file changes. | git status |
| 180 | git add |
Stages selected files for next commit. | git add . |
| 181 | git restore |
Restores modified files to previous state. | git restore app.js |
| 182 | git commit |
Saves staged changes into repository history permanently. | git commit -m "Initial commit" |
| 183 | git log |
Displays complete commit history in chronological order. | git log --oneline |
| 184 | git show |
Displays detailed information about specific commit. | git show HEAD |
| 185 | git diff |
Shows differences between files, commits, or branches. | git diff |
| 186 | git branch |
Lists, creates, or deletes Git branches. | git branch |
| 187 | git switch |
Switches current working branch safely. | git switch main |
| 188 | git checkout |
Switches branches or restores tracked files. | git checkout feature-login |
| 189 | git merge |
Combines another branch into current branch. | git merge feature-login |
| 190 | git rebase |
Reapplies commits onto another branch history. | git rebase main |
| 191 | git stash |
Temporarily stores uncommitted working directory changes. | git stash |
| 192 | git stash pop |
Restores latest stashed changes and removes stash. | git stash pop |
| 193 | git fetch |
Downloads latest remote changes without merging. | git fetch origin |
| 194 | git pull |
Fetches and merges latest remote repository changes. | git pull origin main |
| 195 | git push |
Uploads local commits to remote repository. | git push origin main |
| 196 | git remote |
Manages remote repository connections and URLs. | git remote -v |
| 197 | git tag |
Creates, lists, or deletes version tags. | git tag v1.0.0 |
| 198 | git reset |
Moves HEAD and optionally unstages changes. | git reset HEAD~1 |
| 199 | git revert |
Creates new commit reversing previous commit. | git revert HEAD |
| 200 | git clean |
Removes untracked files and directories safely. | git clean -fd |
| 201 | git cherry-pick |
Applies selected commit onto current branch. | git cherry-pick a1b2c3d |
| 202 | git blame |
Shows line-by-line commit and author information. | git blame app.js |
| 203 | git reflog |
Displays reference history for HEAD movements. | git reflog |
| 204 | git bisect |
Finds commit introducing bug using binary search. | git bisect start |
| 205 | git cherry |
Compares commits between local and upstream branches. | git cherry -v |
Chunk 4B Complete (Commands 176–205) Covered Categories:
- 🌳 Category 16: Git Essentials (176–205)