Skip to content

Instantly share code, notes, and snippets.

View thisjunewest's full-sized avatar

June West thisjunewest

  • Oxford, UK
View GitHub Profile
@jaygooby
jaygooby / git_notes.md
Last active June 1, 2026 16:11
Git, you bloody git

Checkout a stash overwriting the current branch

git checkout stash@{0} -- .

This will potentially overwrite uncommitted files so you may lose work.

Via https://www.vincentschmalbach.com/applying-git-stash-changes-with-force/

Create a git alias to show all your git aliases

git config --global alias.alias "! git config --get-regexp ^alias. | sed -e s/^alias.// -e s/\ /\ =\ /"