Skip to content

Instantly share code, notes, and snippets.

View peterjwest's full-sized avatar

Peter West peterjwest

  • Oxford, UK
View GitHub Profile
@jaygooby
jaygooby / git_notes.md
Last active February 16, 2026 12:33
Git, you bloody git

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/\ /\ =\ /"

Thanks Asclepius!

Then you can git alias to see them all

Rename a remote

git remote rename <old-name> <new-name>