commit-changes.sh 551 B

1234567891011121314151617181920212223
  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 "In the prompt, enter the username & password from Bitwarden for 'git.home.tarka.ca'"
  16. echo
  17. read -n 1 -p "Press any key to continue, or <CTRL + C> to cancel"
  18. git push origin main