File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -227,5 +227,27 @@ echo " flutter analyze # Analyze code"
227227echo " flutter build # Build the application"
228228echo " "
229229echo " If you just installed Flutter, you may need to restart your terminal."
230+ echo " "
231+
232+ # 9. Commit and push any changes made during setup
233+ echo " Checking for changes to commit..."
234+ if ! git diff --quiet || ! git diff --cached --quiet || [ -n " $( git ls-files --others --exclude-standard) " ]; then
235+ echo " Changes detected from setup process. Committing and pushing..."
236+
237+ # Add all changes
238+ git add -A
239+
240+ # Commit with descriptive message
241+ git commit -m " Auto-update from setup script: dependencies and generated files" --no-verify
242+
243+ # Push to remote
244+ echo " Pushing changes to remote repository..."
245+ git push origin main
246+
247+ echo " Changes committed and pushed successfully!"
248+ else
249+ echo " No changes to commit."
250+ fi
251+
230252echo " "
231253echo " Setup process complete!"
You can’t perform that action at this time.
0 commit comments