mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 15:15:39 +01:00
change scripts
This commit is contained in:
parent
be42d058cb
commit
27e0c22bae
10 changed files with 86 additions and 72 deletions
11
modules/home/scripts/scripts/push.sh
Normal file
11
modules/home/scripts/scripts/push.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue