10 lines
217 B
Bash
10 lines
217 B
Bash
#!/usr/bin/env bash
|
|
|
|
git_directory=$PWD/.git
|
|
if [[ -d $git_directory ]];then
|
|
git add .
|
|
read -p "Enter commit name: " commit_name
|
|
git commit -m "$commit_name"
|
|
else
|
|
echo "Git wasn't initialized here."
|
|
fi |