commit-changes.sh 562 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. echo "=== List of changes ==="
  3. git status
  4. echo "==========="
  5. echo
  6. read -p "Enter a brief description of changes: " message
  7. echo "Going to commit with message:"
  8. echo " ${message?}"
  9. echo
  10. read -n 1 -p "Press any key to continue, or <CTRL + C> to cancel"
  11. git add .
  12. git commit -m "${message?}"
  13. printf "\n\n\n"
  14. echo "Saving changes to remote repository."
  15. echo
  16. echo "If a prompt appears, enter the username & password from Bitwarden for 'git.home.tarka.ca'"
  17. echo
  18. read -n 1 -p "Press any key to continue, or <CTRL + C> to cancel"
  19. git push origin main