Files
dotfiles/scripts/commit-dotfiles.sh
T
2025-01-03 00:10:03 -05:00

15 lines
271 B
Bash

#!/bin/bash
# Navigate to the repository
cd ~/dotfiles || exit
# Check for changes
if [[ $(git status --porcelain) ]]; then
# There are changes, commit them
git add .
git commit -m "$(date +"%Y-%m-%d")"
git push
else
echo "No changes to commit."
fi