Skip to content

Commit

Permalink
Update at Fri Oct 11 03:53:39 PM CST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdove committed Oct 11, 2024
1 parent 7f1f77d commit 48a4ee7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/.DS_Store
**/build
**/bin
**/push.sh
**/bin
20 changes: 20 additions & 0 deletions push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Check if a commit message was provided as an argument
if [ -z "$1" ]; then
# If no commit message is provided, use the current date and time
COMMIT_MSG="Update at $(date)"
else
# Use the provided commit message
COMMIT_MSG="$1"
fi

# Add all changes
git add .

# Commit changes with the provided message
git commit -m "$COMMIT_MSG"

# Push changes to the 'main' branch
git push origin main

# Print a success message
echo "Changes have been pushed to GitHub successfully!"

0 comments on commit 48a4ee7

Please sign in to comment.