Files
dotfiles/configs/git/gitconfig
T
tmerritt f950536492 adds new aliases for git.
- sr  = submodule update --remote --init
  - sms = submodule foreach 'git stash'
  - smp = submodule foreach 'git stash pop'
adds recurse option to submodule
adds submodulessummary to status
2023-03-10 13:37:17 -05:00

51 lines
1.0 KiB
Plaintext

[user]
email = trevor.merritt@gmail.com
name = Trevor Merritt
[init]
defaultBranch = master
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
sr = submodule update --remote --init
sms = submodule foreach 'git stash'
smp = submodule foreach 'git stash pop'
# smbr = submodule foreach 'git checkout '
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
pruneTags = true
recurseSubmodules = true
[rebase]
autosquash = true
autostash = true
[include]
path = ~/.gitconfig.local
[diff]
colorMoved = zebra
[branch]
autoSetupRebase=always
[checkout]
defaultRemote=origin
[status]
submodulessummary = true
[submodule]
recurse = true
rebase = true