Skip to content

Instantly share code, notes, and snippets.

@princejoseph
Last active April 30, 2019 10:29
Show Gist options
  • Save princejoseph/76551bf8e824447a4dce388a575557d2 to your computer and use it in GitHub Desktop.
Save princejoseph/76551bf8e824447a4dce388a575557d2 to your computer and use it in GitHub Desktop.
[alias]
[alias]
gui = !sh -c /usr/local/opt/git/libexec/git-core/git-gui
co = checkout
fco = "!f(){ git fetch origin \"$1\" && git checkout \"$1\"; };f"
conflicts = diff --name-only --diff-filter=U
spull = "!f(){ git checkout \"$1\" && git pull origin \"$1\"; };f"
branch-name = "!git rev-parse --abbrev-ref HEAD"
upush = "!git push -u origin $(git branch-name)"
code-review = difftool origin/dev...
upull = "!git pull origin $(git branch-name)"
switch = checkout
pco = "!f(){ git spull \"$1\" };f"
[user]
email = [email protected]
name = Prince Joseph
[guitool "Delete"]
cmd = rm \"$FILENAME\"
needsfile = yes
[guitool "Pull"]
cmd = git pull origin $REVISION
revprompt = yes
[guitool "Reset Head soft"]
cmd = git reset --soft HEAD^
[guitool "Stash"]
cmd = git stash
[guitool "Stash pop"]
cmd = git stash pop
[guitool "Stash clear"]
cmd = git stash clear
[guitool "Run"]
cmd = $ARGS
argprompt = yes
[gui]
fontui = -family Monaco -size 13 -weight normal -slant roman -underline 0 -overstrike 0
[core]
editor = vim
excludesfile = /Users/prince/.gitignore
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[diff]
tool = vim
[difftool]
prompt = false
[merge]
tool = vim
[mergetool]
prompt = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment