Created
April 20, 2021 21:52
-
-
Save cmcconnell1/c7e3f72f4220ac735974dd936bde1c3d to your computer and use it in GitHub Desktop.
This file contains 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
# http://documentup.com/skwp/git-workflows-book | |
[user] | |
name = First Last | |
email = [email protected] | |
#token = | |
[url "[email protected]:"] | |
insteadOf = https://github.com/ | |
[core] | |
excludesfile = /Users/youruserid/.gitignore_global | |
editor = vim | |
autocrlf = false | |
[merge] | |
#tool = bc | |
summary = true | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = auto | |
# https://gist.githubusercontent.com/rab/4067067/raw/ac87808a793230006b6ba1d2b992ee022190a45c/.gitconfig | |
# color.branch.<slot> | |
# Use customized color for branch coloration. <slot> is one of current (the current branch), local | |
# (a local branch), remote (a remote-tracking branch in refs/remotes/), plain (other refs). | |
# The value for these configuration variables is a list of colors (at most two) and attributes (at | |
# most one), separated by spaces. The colors accepted are: | |
# normal, black, red, green, yellow, blue, magenta, cyan and white; | |
# the attributes are: | |
# bold, dim, ul, blink and reverse. | |
# | |
# The first color given is the foreground; the second is the background. | |
# The position of the attribute, if any, doesn't matter. | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
# color.diff.<slot> | |
# Use customized color for diff colorization. <slot> specifies which part of the patch to use the | |
# specified color, and is one of plain (context text), meta (metainformation), frag (hunk header), | |
# func (function in hunk header), old (removed lines), new (added lines), commit (commit headers), | |
# or whitespace (highlighting whitespace errors). The values of these variables may be specified as | |
# in color.branch.<slot>. | |
[color "diff"] | |
#meta = yellow bold | |
meta = blue bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[gc] | |
auto = 1 | |
[alias] | |
b = branch -v | |
cl = clone | |
d = diff | |
co = checkout | |
gcp = cherry-pick -x | |
r = remote -v | |
s = status | |
tag = tag -l | |
log = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr, %cn)%Creset' --abbrev-commit --date=relative | |
hist = log --graph --pretty=format:'%h %ad | %s%d [%an]' --date=short | |
last = log -1 HEAD | |
unstage = reset HEAD -- | |
uncommit = reset --soft HEAD^ | |
amend = commit --amend -C HEAD | |
del = log --diff-filter=D --summary | |
[branch] | |
autosetuprebase = always | |
[fetch] | |
prune = true | |
[pull] | |
rebase = false | |
[push] | |
default = simple | |
[diff] | |
tool = bc | |
[difftool] | |
bc = trustExitCode | |
prompt = false | |
bc = trustExitCode | |
[mergetool] | |
bc = trustExitCode | |
prompt = false | |
bc = trustExitCode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment