Created
April 6, 2022 16:09
-
-
Save virtual/472cf43b4c3fe145857828882555eb68 to your computer and use it in GitHub Desktop.
gitconfig for alias settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.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