Skip to content

Instantly share code, notes, and snippets.

@virtual
Created April 6, 2022 16:09
Show Gist options
  • Select an option

  • Save virtual/472cf43b4c3fe145857828882555eb68 to your computer and use it in GitHub Desktop.

Select an option

Save virtual/472cf43b4c3fe145857828882555eb68 to your computer and use it in GitHub Desktop.
gitconfig for alias settings
# ~/.gitconfig
[init]
templatedir = ~/.git_template
[user]
email = me@example.com
name = js
# git ac "my commit message"
[alias]
rom = rebase origin/master
cm = commit -m
cd = checkout
ac = "!git add -A && git commit -m"
c = "!git branch | fzf | cut -c7- | xargs -o git checkout"
cp = "cherry-pick -x"
[core]
# Speed up commands involving untracked files such as `git status`.
# https://git-scm.com/docs/git-update-index#_untracked_cache
untrackedCache = true
editor = "vim"
excludesfile = ~/.gitignore
[branch]
sort = -authordate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment