Skip to content

Instantly share code, notes, and snippets.

@ZachSaucier
Last active March 4, 2026 18:39
Show Gist options
  • Select an option

  • Save ZachSaucier/1006229fb8b2f42ee4ceb96728599efe to your computer and use it in GitHub Desktop.

Select an option

Save ZachSaucier/1006229fb8b2f42ee4ceb96728599efe to your computer and use it in GitHub Desktop.
Create and navigate to a new git branch from any other branch
# Just Read
zipjr () {
rm ../jr.zip
zip -r ../jr.zip . -x ".ebextensions/*" ".git/*" "node_modules/*"
}
# Svelte
dev () {
npm run dev -- --open
}
# git
gb() {
git checkout main
git pull
git branch "$1"
git checkout "$1"
}
ga () {
git add -A .
}
gc () {
git commit -m "$*"
}
gp () {
git push
}
alias gbc='git branch --no-color --merged origin/main | grep -vE "^\s*(\*|main|develop)" | xargs -n 1 git branch -d'
# DL music
dl () {
yt-dlp -x --audio-format mp3 "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment