Prompt the user:
"What is the GitHub repository URL you’d like to push this project to? (e.g., https://github.com/yourusername/your-repo.git)"
Then perform the following steps:
- •
Initialize Git: git init
- •
Create
.gitignorewith typical entries for iOS projects: DerivedData/ *.xcworkspace *.xcodeproj/project.xcworkspace/ *.xcuserdata/ *.xcuserstate build/ *.pbxuser - •
Create
LICENSE(MIT): MIT License (fill in year and name) - •
Confirm
README.mdis present. - •
Stage and commit: git add . git commit -m "Initial commit"
- •
Configure remote and push using the URL provided by the user: git remote add origin [USER_PROVIDED_URL] git branch -M main git push -u origin main
Claude should validate the URL format and confirm before pushing.