Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
git
/
Show file at specific commit
Show file at specific commit
git
Print the content of a file at a historical commit
git show <sha>:path/to/file
⎘ copy
#git
more git
all 45 commands →
Log with graph
git log --oneline --graph --decorate --all | head -40
Grep across history
git log -S 'password' --oneline --all
Amend last commit message
git commit --amend --no-edit
Delete remote branch
git push origin --delete feature/old-branch
Clean untracked files
git clean -fdx