Skip to content

Commit 48a4ee7

Browse files
committed
Update at Fri Oct 11 03:53:39 PM CST 2024
1 parent 7f1f77d commit 48a4ee7

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
**/.DS_Store
22
**/build
3-
**/bin
4-
**/push.sh
3+
**/bin

push.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Check if a commit message was provided as an argument
2+
if [ -z "$1" ]; then
3+
# If no commit message is provided, use the current date and time
4+
COMMIT_MSG="Update at $(date)"
5+
else
6+
# Use the provided commit message
7+
COMMIT_MSG="$1"
8+
fi
9+
10+
# Add all changes
11+
git add .
12+
13+
# Commit changes with the provided message
14+
git commit -m "$COMMIT_MSG"
15+
16+
# Push changes to the 'main' branch
17+
git push origin main
18+
19+
# Print a success message
20+
echo "Changes have been pushed to GitHub successfully!"

0 commit comments

Comments
 (0)