17 lines
282 B
Bash
Executable File
17 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 1. Lisätään kaikki muutetut tiedostot
|
|
git add .
|
|
|
|
# 2. Kysytään commit-viestiä käyttäjältä
|
|
echo "Syötä commit-kommentti:"
|
|
read commit_viesti
|
|
|
|
# 3. Tehdään commit
|
|
git commit -m "$commit_viesti"
|
|
|
|
# 4. Pushataan muutokset
|
|
git push
|
|
|
|
echo "Päivitys valmis!"
|