Your boss wants a quick fix on ‘Main’, but your ‘Feature’ branch is a mess. Use Stash.
git stash # Save work to a temporary pile git checkout main # Switch and do the fix git checkout dev # Switch back git stash pop # Bring work back
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Your boss wants a quick fix on ‘Main’, but your ‘Feature’ branch is a mess. Use Stash.
git stash # Save work to a temporary pile git checkout main # Switch and do the fix git checkout dev # Switch back git stash pop # Bring work back