Yarn

Recent twts in reply to #dip2g6q

@ullarah@txt.quisquiliae.com this is for you, LOL. “Oh shit, I accidentally committed to the wrong branch!” No problem:

# undo the last commit, but leave the changes available
git reset HEAD~ --soft
git stash
# move to the correct branch
git checkout name-of-the-correct-branch
git stash pop
git add . # or add individual files
git commit -m "your message here";
# now your changes are on the correct branch

⤋ Read More

Participate

Login or Register to join in on this yarn.