Permalink
Browse files

Basic 'push' command for completeness. I'm stoked for the clipboard f…

…eature
  • Loading branch information...
jamiew committed Jan 25, 2011
1 parent 9d1dd9a commit 58dcade21104635dfeb14fcb951fc62744213aab
Showing with 15 additions and 0 deletions.
  1. +15 −0 push
View
15 push
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Usage: push
+#
+# Send your local branch changes to the remote branch
+# This will be pimped out later... I want to make it copy a handy
+# "check out my commit" diff URL to the clipboard. e.g. =>
+# http://github.com/jamiew/app/compare/OLDREF...NEWREF
+#
+
+remote=origin
+branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
+
+git push $remote $branch
+

0 comments on commit 58dcade

Please sign in to comment.