-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update at Fri Oct 11 03:53:39 PM CST 2024
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
**/.DS_Store | ||
**/build | ||
**/bin | ||
**/push.sh | ||
**/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |