Former-commit-id:f2fac39428
[formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae] Former-commit-id:61f269f54c
14 lines
269 B
Bash
14 lines
269 B
Bash
#!/bin/bash
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Enter a commit message in the form: 'Issue #xxx did something'"
|
|
else
|
|
# Add all files to index
|
|
git add -A
|
|
|
|
# Commit using first argument as message
|
|
git commit -m "$1"
|
|
|
|
git status
|
|
fi
|