nixos-config/modules/home/scripts/scripts/commit.sh

10 lines
217 B
Bash
Raw Normal View History

2023-11-13 00:16:48 +01:00
#!/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