]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Adds gsync
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 3 Nov 2016 13:46:59 +0000 (11:46 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 3 Nov 2016 13:46:59 +0000 (11:46 -0200)
gsync [new file with mode: 0755]

diff --git a/gsync b/gsync
new file mode 100755 (executable)
index 0000000..14f18a0
--- /dev/null
+++ b/gsync
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Commit, push and fetch
+#
+
+# Parameters
+PROJECT="$1"
+
+# Try to get there
+if [ ! -z "$PROJECT" ]; then
+  cd $PROJECT
+fi
+
+# Sync
+up
+mr fetch