Files
cosec_automation/to_git.sh
T
2025-11-14 16:52:50 +05:30

21 lines
454 B
Bash

#!/bin/bash
# NOTES:
# Run this on the development machine.
# NOT to be used in a collaborative environment:
# Accept a comment from the terminal:
echo "Comment: "
read -r COMMENT
# Add all the modified files to the intended commit:
git add .
echo "Files added."
# Make the commit:
git commit -m "$COMMENT"
echo "Commit done."
# Push th commit to git:
git push -u https://wtt.ditscentre.in/ditscentre/logs_ui.git master
echo "Attempt done. Exiting."