dotfiles/config/git/.gitconfig

56 lines
1.2 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://madjam.dev/how-to-add-git-credentials-on-linux-and-macos-hosts-ssh-and-pat/
# 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
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
sm = submodule
[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