Files
dotfiles/.local/bin/gp
T
Joel Mathew Thomas eb31d5777e routine changes
2024-05-11 15:10:56 +05:30

18 lines
321 B
Bash
Executable File

#!/bin/bash
# Check if argument is provided
if [ $# -eq 0 ]; then
echo "Usage: $0 <commit_message>"
exit 1
fi
# Add all changes
git add .
# Commit with the provided argument
commit_message="$1"
git commit -m "$commit_message"
# Push changes to the master branch of the origin remote
git push -u origin master