Skip to content

Instantly share code, notes, and snippets.

@richja
richja / gist:b9c076ee4ed648cd840434084b48bf7e
Created July 22, 2020 08:23
Delete old remote branches on Git
//sort remote branches by oldest last commit date
git branch -r --sort=committerdate | xargs echo
//pick all remote branches and remove origin/ part or use something sed to do it automatically (https://stackoverflow.com/a/40010115)
git push origin --delete <remote branches here>
@richja
richja / .bashrc
Created July 16, 2020 14:39
Bashrc file
alias gc='git checkout'
alias gp='git push'
@richja
richja / script.ahk
Last active August 10, 2021 09:11
AutoHotKey to remap PrintScreen to context menu
PrintScreen::AppsKey
Launch_Mail::Volume_Down
Browser_Home::Volume_Up