summaryrefslogtreecommitdiff
path: root/git-push-first.in
diff options
context:
space:
mode:
Diffstat (limited to 'git-push-first.in')
-rwxr-xr-xgit-push-first.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-push-first.in b/git-push-first.in
new file mode 100755
index 0000000..26e50f4
--- /dev/null
+++ b/git-push-first.in
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+eval "$(
+ git push 2>&1 \
+ | sed '
+ $d
+ ' \
+ | sed -n '
+ $p
+ '
+)"