If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
discord.gg/pjTvDtE2
discord.gg/pjTvDtE2
✔️ Great for quick, temporary saves
❌ Not a replacement for commits
💡 When in doubt, create a branch instead
✔️ Great for quick, temporary saves
❌ Not a replacement for commits
💡 When in doubt, create a branch instead
Accidentally dropped a stash? You might still recover it:
Try: git fsck --lost-found and look for stash-like commits.
Accidentally dropped a stash? You might still recover it:
Try: git fsck --lost-found and look for stash-like commits.
🗑 Clear all stashes: git stash clear
🗑 Delete a specific stash: git stash drop stash@{1}
Pro tip: If you use stashes often, clean them up regularly!
🗑 Clear all stashes: git stash clear
🗑 Delete a specific stash: git stash drop stash@{1}
Pro tip: If you use stashes often, clean them up regularly!
🚀 Use WIP commits: git commit -m "WIP"
🚀 Create a temporary branch
🚀 Use git worktree for parallel work
🚀 Use WIP commits: git commit -m "WIP"
🚀 Create a temporary branch
🚀 Use git worktree for parallel work
🚨 If your work is important (stashes aren’t safe long-term)
🚨 If you switch tasks often (easy to forget stashes)
🚨 If you need team visibility (stashes are local, not shared)
🚨 If your work is important (stashes aren’t safe long-term)
🚨 If you switch tasks often (easy to forget stashes)
🚨 If you need team visibility (stashes are local, not shared)
✔️ Switching branches temporarily
✔️ Need a clean working directory for testing
✔️ Quickly save work without committing
✔️ Switching branches temporarily
✔️ Need a clean working directory for testing
✔️ Quickly save work without committing
If you have multiple stashes, apply a specific one using:
git stash apply stash@{2}
This applies the 3rd stash in your history (zero-based index).
If you have multiple stashes, apply a specific one using:
git stash apply stash@{2}
This applies the 3rd stash in your history (zero-based index).
By default, stashes are unnamed, which can get messy. Instead, use:
📝 git stash push -m "WIP: Fixing login bug"
📜 View stash history: git stash list
By default, stashes are unnamed, which can get messy. Instead, use:
📝 git stash push -m "WIP: Fixing login bug"
📜 View stash history: git stash list
🗄 Stash changes: git stash
♻️ Apply latest stash: git stash pop (removes it from stash history)
🔄 Apply without removing: git stash apply
🗄 Stash changes: git stash
♻️ Apply latest stash: git stash pop (removes it from stash history)
🔄 Apply without removing: git stash apply
🔹 Temporarily saves uncommitted changes
🔹 Cleans your working directory
🔹 Lets you switch branches without committing
🔹 Think of it as a clipboard for your code
🔹 Temporarily saves uncommitted changes
🔹 Cleans your working directory
🔹 Lets you switch branches without committing
🔹 Think of it as a clipboard for your code
If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
It helps you create and manage stacked PRs completely free.
🔗: github.com/aviator-co/av
It helps you create and manage stacked PRs completely free.
🔗: github.com/aviator-co/av
🔹 Ship incomplete features behind flags
🔹 Merge incrementally without affecting users
🔹 Reduce risk of breaking production
🔹 Ship incomplete features behind flags
🔹 Merge incrementally without affecting users
🔹 Reduce risk of breaking production
🔹 Bottom-up: Merge base PR first, then the next
🔹 Top-down: Rebase from the base PR as you go
Tools like gh stack & av make this effortless!
🔹 Bottom-up: Merge base PR first, then the next
🔹 Top-down: Rebase from the base PR as you go
Tools like gh stack & av make this effortless!
❌ One Big PR – Backend, API, UI, styles, settings all in one = 🔥
✅ Stacked PRs:
1️⃣ Backend: Store dark mode preference
2️⃣ API: Expose preference
3️⃣ UI: Toggle switch + styles
Much easier to review!
❌ One Big PR – Backend, API, UI, styles, settings all in one = 🔥
✅ Stacked PRs:
1️⃣ Backend: Store dark mode preference
2️⃣ API: Expose preference
3️⃣ UI: Toggle switch + styles
Much easier to review!
🔹 Less waiting for approvals
🔹 Merge work incrementally instead of all at once
🔹 Avoid rewriting code due to delayed feedback
🔹 Keep main branch stable while shipping fast
🔹 Less waiting for approvals
🔹 Merge work incrementally instead of all at once
🔹 Avoid rewriting code due to delayed feedback
🔹 Keep main branch stable while shipping fast
✅ Faster reviews (small changes = quick feedback)
✅ Focused discussions (each PR solves one problem)
✅ Fewer merge conflicts (less code churn)
✅ Easier debugging (pinpoint issues in smaller PRs)
✅ Faster reviews (small changes = quick feedback)
✅ Focused discussions (each PR solves one problem)
✅ Fewer merge conflicts (less code churn)
✅ Easier debugging (pinpoint issues in smaller PRs)
🔹 A sequence of smaller, dependent PRs
🔹 Each PR builds on the previous one
🔹 Easier to review since each PR focuses on a single step
Example:
✅ PR 1: Refactor DB schema
✅ PR 2: API changes
✅ PR 3: Update UI
🔹 A sequence of smaller, dependent PRs
🔹 Each PR builds on the previous one
🔹 Easier to review since each PR focuses on a single step
Example:
✅ PR 1: Refactor DB schema
✅ PR 2: API changes
✅ PR 3: Update UI
❌ Hard to review
❌ Reviewers get lost in too many changes
❌ Endless back & forth slows progress
❌ Rubber-stamping leads to hidden bugs
Stacked PRs fix this 👇
❌ Hard to review
❌ Reviewers get lost in too many changes
❌ Endless back & forth slows progress
❌ Rubber-stamping leads to hidden bugs
Stacked PRs fix this 👇
If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
If you did:
✅ Follow me @sumitsaurabh927 for more.
✅ Like and comment down below
✅ Repost the quote below:
It helps you create and manage stacked PRs completely free.
🔗: github.com/aviator-co/av
It helps you create and manage stacked PRs completely free.
🔗: github.com/aviator-co/av