From c3e9e2b666f6aaee5493163070460f530f2d28c4 Mon Sep 17 00:00:00 2001 From: archos Date: Sun, 28 Apr 2024 19:50:35 +0200 Subject: [PATCH] =?UTF-8?q?p=C5=99ejmenov=C3=A1ny=20skripty,=20aby=20obsah?= =?UTF-8?q?ovaly=20=C4=8D=C3=ADseln=C3=BD=20prefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/01-git-init.sh | 4 ++++ examples/02-git-add.sh | 4 ++++ examples/03-git-commit.sh | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 examples/01-git-init.sh create mode 100644 examples/02-git-add.sh create mode 100644 examples/03-git-commit.sh diff --git a/examples/01-git-init.sh b/examples/01-git-init.sh new file mode 100644 index 0000000..cec542a --- /dev/null +++ b/examples/01-git-init.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Tento skript inicializuje nový Git repozitář ve stávající složce +git init +echo "Git repozitář byl úspěšně inicializován." diff --git a/examples/02-git-add.sh b/examples/02-git-add.sh new file mode 100644 index 0000000..249138a --- /dev/null +++ b/examples/02-git-add.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Tento skript přidá všechny soubory v aktuální složce do staging area +git add . +echo "Všechny soubory byly přidány do staging area." diff --git a/examples/03-git-commit.sh b/examples/03-git-commit.sh new file mode 100644 index 0000000..221c724 --- /dev/null +++ b/examples/03-git-commit.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Tento skript commituje všechny změny v staging area s předdefinovanou zprávou +git commit -m "Initial commit" +echo "Změny byly commitnuty."