Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
git
/
Show branches merged into main
Show branches merged into main
git
List local branches already merged into main
git branch --merged main
⎘ copy
#git
#branch
#merged
#cleanup
more git
all 45 commands →
Interactive rebase last N commits
git rebase -i HEAD~5
Cherry-pick commit
git cherry-pick <sha>
Reflog — rescue lost commits
git reflog show --date=relative | head -20
Stash with message
git stash push -m 'WIP: feature-x' -u
Apply stash by index
git stash pop stash@{2}