Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
git
/
Clean untracked files
Clean untracked files
git
Remove untracked files and directories from working tree
git clean -fd
⎘ copy
#git
#clean
#working-tree
more git
all 45 commands →
Show branches merged into main
git branch --merged main
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