From 20a74dcf4371ea415358409a64f8df6e759d8a1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Ko=C5=BEusznik?= <jan@kozusznik.cz>
Date: Tue, 21 Sep 2021 22:56:33 +0200
Subject: [PATCH] init scripts

---
 init    |  9 +++++++++
 publish | 10 ++++++++++
 2 files changed, 19 insertions(+)
 create mode 100755 init
 create mode 100755 publish

diff --git a/init b/init
new file mode 100755
index 0000000..0ab8702
--- /dev/null
+++ b/init
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+remote_add () {
+	git remote add $1 https://git.cs.vsb.cz/vyuka-koz01/java-1/2021/$1.git
+}
+
+remote_add lab01
+remote_add lab02
+remote_add lab03
+remote_add lab04
\ No newline at end of file
diff --git a/publish b/publish
new file mode 100755
index 0000000..6dd474f
--- /dev/null
+++ b/publish
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+push_remote () {
+	git push -f $1 $1:master
+}
+
+push_remote lab01
+push_remote lab02
+push_remote lab03
+push_remote lab04
\ No newline at end of file
-- 
GitLab