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."