Skip to content

Instantly share code, notes, and snippets.

@bryanroscoe
Last active April 29, 2022 14:01
Show Gist options
  • Select an option

  • Save bryanroscoe/18fea432f5162eae5ac98a404897e6b3 to your computer and use it in GitHub Desktop.

Select an option

Save bryanroscoe/18fea432f5162eae5ac98a404897e6b3 to your computer and use it in GitHub Desktop.
.gitconfig rev
[user]
name = Bryan Roscoe
email = bryanroscoe@gmail.com
[core]
editor = vim
autocrlf = false
longpaths = true
eol = LF
[color]
branch = auto
diff = auto
status = auto
ui = true
interactive = auto
[pull]
rebase = true
[push]
default = simple
[alias]
ammend = "!git add . ; git commit --amend --no-edit"
ci = commit
cm = "!git add . ; git commit -m "
co = checkout
cob = checkout -b
brd = branch -D
br = branch
f = fetch -p
brn = "!git fetch -p ; git co origin/develop ; git co -b"
lg = "log --graph --pretty=format:'%C(green)%h [%an]%Creset -%C(cyan)%d%Creset %s %C(green)(%cr)%Creset' --abbrev-commit --date=relative"
s = status
st = "status -sb"
lg1 = "log --oneline --decorate"
hist = "log --pretty=format:'%h %ad | %s%d [%an]' --date=short --max-count=10"
branch-name = "!git rev-parse --abbrev-ref HEAD"
track = "!git push -u origin $(git branch-name)"
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment