summaryrefslogtreecommitdiff
path: root/git-push-first
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-08 11:19:48 +0100
committerErich Eckner <git@eckner.net>2022-01-08 11:19:48 +0100
commit0ccea4da66dc4cae98b640e4ad906f429e3a353b (patch)
tree232e23d2ec9bc7ad998c64898e661b72956e0d39 /git-push-first
parent522c8cb129904ec9d5098a880fcc1d2bc942b846 (diff)
downloadeven-more-utils-0ccea4da66dc4cae98b640e4ad906f429e3a353b.tar.xz
add some useful git commands
Diffstat (limited to 'git-push-first')
-rwxr-xr-xgit-push-first11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-push-first b/git-push-first
new file mode 100755
index 0000000..26e50f4
--- /dev/null
+++ b/git-push-first
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+eval "$(
+ git push 2>&1 \
+ | sed '
+ $d
+ ' \
+ | sed -n '
+ $p
+ '
+)"