Skip to content

Instantly share code, notes, and snippets.

@Arrow7000
Created June 28, 2021 10:30
Show Gist options
  • Save Arrow7000/b0858a92cfd87144bc7956a4deda8aec to your computer and use it in GitHub Desktop.
Save Arrow7000/b0858a92cfd87144bc7956a4deda8aec to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
email = aron@adler.dev
name = Aron Adler
[push]
default = current
[difftool "sourcetree"]
cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
[alias]
st = status
fa = fetch --all
plf = pull --ff-only
p = push
pf = push --force-with-lease
done = "!git checkout master && git plf"
upd = fetch -u origin master:master # update master branch
ca = commit --amend
co = checkout
nb = checkout -b # make new branch
stash-staged = "!git stash --keep-index -u -m \"unstageds temporary\" && git stash push -u -m \"stageds only\" && git stash pop stash@{1}"
mff = merge --ff-only
[init]
defaultBranch = "master"
[core]
longpaths = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment