We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f1f77d commit 48a4ee7Copy full SHA for 48a4ee7
.gitignore
@@ -1,4 +1,3 @@
1
**/.DS_Store
2
**/build
3
-**/bin
4
-**/push.sh
+**/bin
push.sh
@@ -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)"
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