summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <jesse.luehrs@stripe.com>2015-08-10 22:21:41 -0700
committerJesse Luehrs <doy@tozt.net>2015-08-10 22:38:58 -0700
commit069faaa7f3de8fc8d8f795fe63ba3a3d9317d89c (patch)
treedf7d7c0067edfd4b9621b8997e8dd092d3878e2b
parentae5a17a849f7bdc7da54773d97a23ed8c1a62ffb (diff)
downloadconf-069faaa7f3de8fc8d8f795fe63ba3a3d9317d89c.tar.gz
conf-069faaa7f3de8fc8d8f795fe63ba3a3d9317d89c.zip
new alias to fix tracking branches
-rw-r--r--gitconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
index fd9f3c1..498be86 100644
--- a/gitconfig
+++ b/gitconfig
@@ -31,6 +31,7 @@
br = branch
ri = rebase -i
fixup = "!f() { git record --fixup \"$@\"; }; f"
+ track = "!f() { local name=$(git name-rev --name-only @); git branch --set-upstream-to=origin/$name $name; }; f"
[github]
user = doy
[color]