summaryrefslogtreecommitdiff
path: root/git-push-first.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-08 11:28:17 +0100
committerErich Eckner <git@eckner.net>2022-01-08 11:28:17 +0100
commit903c75a4c28e27879fc0715b2f36e2990eff6aa9 (patch)
tree68ce36feed9537371216e487dfcf70b6f6348af9 /git-push-first.in
parentf97e9d6b37203d94cd34c64c099f401b154ec868 (diff)
downloadeven-more-utils-903c75a4c28e27879fc0715b2f36e2990eff6aa9.tar.xz
fix names
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
+ '
+)"