mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 15:15:39 +01:00
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
|