nixos-config/modules/home/scripts/scripts/push.sh
2023-12-14 00:00:06 +01:00

11 lines
No EOL
230 B
Bash
Executable file

#!/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"
git push
else
echo "Git wasn't initialized here."
fi