Skip to content

Commit

Permalink
Stop assuming that all repos have upstream, and with GH-like pull req…
Browse files Browse the repository at this point in the history
…uests
  • Loading branch information
Luca Favatella committed Dec 6, 2015
1 parent 884efa6 commit 628cf66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
dw = diff -w
dc = diff --cached -M
f = fetch
fghprs = "!f() { git fetch \"${1:-upstream}\" +refs/pull/*/head:refs/remotes/\"${1:-upstream}\"/pull/*; }; f"
co = checkout
a = add
ci = commit
Expand All @@ -47,9 +48,5 @@
cpa = cherry-pick --abort
purge = clean -d -x

[remote "upstream"]
fetch = +refs/heads/*:refs/remotes/upstream/*
fetch = +refs/pull/*/head:refs/remotes/upstream/pull/*

[include]
path = ~/.gitconfig_local

0 comments on commit 628cf66

Please sign in to comment.