Change-Id: Iabdc5005ed9376e31414429a76898c0798d8e7ff Former-commit-id: ec3999181ac1f2d2d0ca7f469b69a5bf83633570
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
|