Skip to content

git cheatsheet

Jorge Estanislao Barsoba edited this page Jul 17, 2024 · 1 revision

My personal Git cheatsheet

Stash with name

git stash push -m "my_stash_name"
git stash pop stash@{n}

Search string in log

// Looks for commits where the given string is present, from oldest to most recent commits
git log -S 'string to search inside commit diffs' --oneline --reverse path/

Clone this wiki locally