18 lines
321 B
Bash
Executable File
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
|