Last active
March 19, 2023 00:07
-
-
Save william8th/1f452c085449f05752b6 to your computer and use it in GitHub Desktop.
My custom git config
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
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
# Highlight whitespace in diffs | |
[color] | |
ui = true | |
[color "diff"] | |
whitespace = red reverse | |
[core] | |
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
trustctime = false | |
quotepath = false | |
excludesfile = /Users/whe03/.gitignore_global | |
editor = vi | |
# Add aliases to your ~/.gitconfig file: | |
[alias] | |
st = status | |
br = branch | |
co = checkout | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
cm = commit | |
st = status | |
br = branch | |
fe = fetch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
cp = cherry-pick | |
pushup = push --set-upstream origin HEAD | |
unstage = reset HEAD | |
[user] | |
name = # | |
email = # | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment