dotfiles/config/git/.gitconfig
2025-03-16 02:26:30 -04:00

63 lines
1.3 KiB
INI

# Have git remember credentials
# git config --global credential.helper (store|cache|libsecret|git-credential-manager-core)
# setting up git on a new machine:
# https://jamiam.dev/posts/how-to-add-git-credentials-on-linux-mac-hosts/
# Setting up a new repo *make first commit*
# git remote add origin <url/path to git project>
# git push -u origin master
[user]
email = notjamesdixon@gmail.com
name = James Dixon
[color]
ui = true
status = auto
branch = auto
[diff]
tool = vimdiff
[difftool]
prompt = false
[pull]
ff = only
[alias]
s = status
st = status
a = add
aa = add --all
ai = add -i
c = commit
ca = commit -a
cm = commit -m
cam = commit -am
co = checkout
cob = checkout -b
cl = clean -i
br = branch
d = diff
df = diff
dt = difftool
lg = log
plog = log --all --decorate --oneline --graph
graph = log --all --decorate --oneline --graph
pl = pull
pul = pull
ps = push
puhs = push
sw = switch
swc = switch -c
sm = submodule
rv = remote -v
[credential "https://dev.azure.com"]
useHttpPath = true
[credential]
helper = store
# https://cli.github.com/manual/gh_auth_setup-git
# gh auth setup-git
[credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/bin/gh auth git-credential
# vim: set list et!: