Skip to content

Instantly share code, notes, and snippets.

@carmanchris31
Last active February 29, 2024 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmanchris31/f502f6d18c18b6eeca8f105e4b70cf3a to your computer and use it in GitHub Desktop.
Save carmanchris31/f502f6d18c18b6eeca8f105e4b70cf3a to your computer and use it in GitHub Desktop.
Git base config
[core]
excludesfile = ~/.gitignore
[fetch]
prune = true
pruneTags = true
[pull]
ff = only
[rebase]
autosquash = true
[alias]
# these require `brew install fzf`
fc = "!git checkout $(git branch | fzf)"
fca = "!git checkout $(git branch -a | fzf | sed -e 's# *remotes/origin/##')"
fd = "!git branch -D $(git branch | fzf --multi)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment