Skip to content

Instantly share code, notes, and snippets.

@ronaldsuwandi
Last active April 21, 2021 23:13
Show Gist options
  • Save ronaldsuwandi/9966293 to your computer and use it in GitHub Desktop.
Save ronaldsuwandi/9966293 to your computer and use it in GitHub Desktop.
My personal gitconfig
[user]
name = Ronald Suwandi
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
editor = subl -n -w # sublime text
[diff]
tool = default-difftool
[difftool]
prompt = false
[difftool "default-difftool"]
cmd = code -w -d $LOCAL $REMOTE # visual code studio
[color]
ui = true
[alias]
co = checkout
st = status
tree = log --graph --decorate=short --branches --date=relative --abbrev-commit --shortstat --remotes=origin --source
tr = log --graph --decorate=short --branches --date=relative --abbrev-commit --shortstat --remotes=origin --source
trst = log --graph --decorate=short --branches --date=relative --abbrev-commit --stat --remotes=origin --source
dt = difftool
mt = mergetool
[push]
# push the current branch to a branch of the same name
default = current
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment