DEV Community

30 Days of Advanced Git Commands You Actually Need! Series' Articles

Back to Ruqaiya Beguwala's Series
Git Rebase -i: Clean Up Commits Like a Pro (Day 1/30)
Cover image for Git Rebase -i: Clean Up Commits Like a Pro (Day 1/30)

Git Rebase -i: Clean Up Commits Like a Pro (Day 1/30)

4
Comments
2 min read
Day 2/30: Advanced Git - When and How to Use Cherry-Pick
Cover image for Day 2/30: Advanced Git - When and How to Use Cherry-Pick

Day 2/30: Advanced Git - When and How to Use Cherry-Pick

1
Comments
3 min read
Day 3/30 - Undo Git Mistakes: The Ultimate git reflog Guide
Cover image for Day 3/30 - Undo Git Mistakes: The Ultimate git reflog Guide

Day 3/30 - Undo Git Mistakes: The Ultimate git reflog Guide

Comments
4 min read
Day 4/30 - Git Bisect Explained: Find the Commit That Broke Your Code
Cover image for Day 4/30 - Git Bisect Explained: Find the Commit That Broke Your Code

Day 4/30 - Git Bisect Explained: Find the Commit That Broke Your Code

Comments
2 min read
Day 5/30 : Git worktree – Work on multiple branches simultaneously
Cover image for Day 5/30 : Git worktree – Work on multiple branches simultaneously

Day 5/30 : Git worktree – Work on multiple branches simultaneously

Comments
2 min read
Day 6/30 - Git Submodule – Managing dependencies inside a repo
Cover image for Day 6/30 - Git Submodule – Managing dependencies inside a repo

Day 6/30 - Git Submodule – Managing dependencies inside a repo

Comments 1
3 min read
Day 7/30 - git blame -L – See who changed a specific line in a file
Cover image for Day 7/30 - git blame -L – See who changed a specific line in a file

Day 7/30 - git blame -L – See who changed a specific line in a file

1
Comments
3 min read
Day 8/30 - Git Merge --no-ff – Force a merge commit (avoid fast-forward)
Cover image for Day 8/30 - Git Merge --no-ff – Force a merge commit (avoid fast-forward)

Day 8/30 - Git Merge --no-ff – Force a merge commit (avoid fast-forward)

1
Comments
3 min read
Day 9/30 - git merge --squash – Combine multiple commits into one
Cover image for Day 9/30 - git merge --squash – Combine multiple commits into one

Day 9/30 - git merge --squash – Combine multiple commits into one

Comments 1
3 min read
Day (10/30) - git branch -a + git remote show origin – Inspecting remote branches
Cover image for Day (10/30) - git branch -a + git remote show origin – Inspecting remote branches

Day (10/30) - git branch -a + git remote show origin – Inspecting remote branches

2
Comments 6
3 min read
Day 11/30 - Git Fetch --prune -Clean Up Stale Remote-Tracking Branches
Cover image for Day 11/30 - Git Fetch --prune -Clean Up Stale Remote-Tracking Branches

Day 11/30 - Git Fetch --prune -Clean Up Stale Remote-Tracking Branches

Comments
3 min read
Day 12/30 - git push --force-with-lease – Safer alternative to --force
Cover image for Day 12/30 - git push --force-with-lease – Safer alternative to --force

Day 12/30 - git push --force-with-lease – Safer alternative to --force

Comments
3 min read
Day 13/30 - Git Pull --rebase: Keep Your History Linear When Pulling Changes
Cover image for Day 13/30 - Git Pull --rebase: Keep Your History Linear When Pulling Changes

Day 13/30 - Git Pull --rebase: Keep Your History Linear When Pulling Changes

Comments
4 min read
Day 14/30 - Git Reset: Soft, Hard, and Mixed - Undo Commits at Different Levels
Cover image for Day 14/30 - Git Reset: Soft, Hard, and Mixed - Undo Commits at Different Levels

Day 14/30 - Git Reset: Soft, Hard, and Mixed - Undo Commits at Different Levels

1
Comments
4 min read
Day 15/30 - Git Commit --amend: Modify Your Last Commit with Ease
Cover image for Day 15/30 - Git Commit --amend: Modify Your Last Commit with Ease

Day 15/30 - Git Commit --amend: Modify Your Last Commit with Ease

Comments
3 min read
Day 16/30 - How to Rewrite Git History: Complete Guide to Reset vs Filter-Branch vs Filter-Repo
Cover image for Day 16/30 - How to Rewrite Git History: Complete Guide to Reset vs Filter-Branch vs Filter-Repo

Day 16/30 - How to Rewrite Git History: Complete Guide to Reset vs Filter-Branch vs Filter-Repo

Comments
3 min read
Day 17/30 - Git Revert --no-commit: Revert Multiple Commits Without Auto-Committing
Cover image for Day 17/30 - Git Revert --no-commit: Revert Multiple Commits Without Auto-Committing

Day 17/30 - Git Revert --no-commit: Revert Multiple Commits Without Auto-Committing

Comments 1
4 min read
Day 18/30 - git stash --patch – Stash only specific changes interactively
Cover image for Day 18/30 - git stash --patch – Stash only specific changes interactively

Day 18/30 - git stash --patch – Stash only specific changes interactively

1
Comments
3 min read
Day 19/30 - Git Clean -fd: How to Remove Untracked Files & Directories
Cover image for Day 19/30 - Git Clean -fd: How to Remove Untracked Files & Directories

Day 19/30 - Git Clean -fd: How to Remove Untracked Files & Directories

1
Comments 2
3 min read
Day 20/30 - Git rm --cached: Remove Files from Staging but Keep Locally
Cover image for Day 20/30 - Git rm --cached: Remove Files from Staging but Keep Locally

Day 20/30 - Git rm --cached: Remove Files from Staging but Keep Locally

Comments 2
4 min read
Day 21/30 - Git Update-Ref – Manually Update Branch References
Cover image for Day 21/30 - Git Update-Ref – Manually Update Branch References

Day 21/30 - Git Update-Ref – Manually Update Branch References

Comments 1
3 min read
Day 22/30 - git log --graph --oneline --all – Visualize branch history.
Cover image for Day 22/30 - git log --graph --oneline --all – Visualize branch history.

Day 22/30 - git log --graph --oneline --all – Visualize branch history.

Comments 3
4 min read
Day 23/30 - Git Shortlog: Summarize Commit Contributions by Author
Cover image for Day 23/30 - Git Shortlog: Summarize Commit Contributions by Author

Day 23/30 - Git Shortlog: Summarize Commit Contributions by Author

Comments 1
3 min read
Day 24/30 - Git Diff --word-diff: See Word-Level Changes, Not Just Lines
Cover image for Day 24/30 - Git Diff --word-diff: See Word-Level Changes, Not Just Lines

Day 24/30 - Git Diff --word-diff: See Word-Level Changes, Not Just Lines

Comments
4 min read
Day 25/30 - Git Hooks (Pre-Commit, Pre-Push) – Automate Checks Before Commits/Pushes
Cover image for Day 25/30 - Git Hooks (Pre-Commit, Pre-Push) – Automate Checks Before Commits/Pushes

Day 25/30 - Git Hooks (Pre-Commit, Pre-Push) – Automate Checks Before Commits/Pushes

Comments 1
3 min read
Day 26/30 - Git Config --Global Alias: Create Custom Git Shortcuts
Cover image for Day 26/30 - Git Config --Global Alias: Create Custom Git Shortcuts

Day 26/30 - Git Config --Global Alias: Create Custom Git Shortcuts

1
Comments
2 min read
Day 27/30 - Git Grep: How to Search for Text Across Commits and Branches
Cover image for Day 27/30 - Git Grep: How to Search for Text Across Commits and Branches

Day 27/30 - Git Grep: How to Search for Text Across Commits and Branches

Comments
3 min read
Day 28/30 - Git Archive – Export Repo Files Without .git Directory
Cover image for Day 28/30 - Git Archive – Export Repo Files Without .git Directory

Day 28/30 - Git Archive – Export Repo Files Without .git Directory

1
Comments
2 min read
Day 29/30 - Git Bundle – Package a Repo into a Single File for Sharing
Cover image for Day 29/30 - Git Bundle – Package a Repo into a Single File for Sharing

Day 29/30 - Git Bundle – Package a Repo into a Single File for Sharing

Comments
3 min read