Skip to content

Instantly share code, notes, and snippets.

View crispd's full-sized avatar

Dan Crisp crispd

  • Fermi National Accelerator Laboratory
View GitHub Profile
@crispd
crispd / redefault.sh
Created December 14, 2022 21:35 — forked from clockworksoul/redefault.sh
Simple bash script to create and switch master to main branch
#!/bin/bash
set -euo pipefail
function git_branch {
git branch 2>&1 | grep '^\*' | sed 's/\* //g'
}
function git_repo {
grep 'url = git@github.com:' .git/config \