Follow these steps to upload your project to GitHub. I've already prepared everything locally!
First, you need to tell git who you are. Run these commands:
# Set your name (replace with your actual name)
git config user.name "Your Name"
# Set your email (replace with your GitHub email)
git config user.email "your.email@example.com"OR to set it globally for all repositories:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"The files are already staged. You just need to commit:
git commit -m "Initial commit: Complete DineWise project with tests and documentation"- Go to GitHub.com and sign in
- Click the "+" icon in the top right → "New repository"
- Repository name:
from-protege-to-production-python - Description:
From Protégé to Production: Integrating OWL Ontologies with Python using Owlready2 and Flask - Choose Public (or Private if you prefer)
- DO NOT check "Initialize with README" (we already have one!)
- DO NOT add .gitignore or license (we have them)
- Click "Create repository"
gh repo create from-protege-to-production-python --public --description "From Protégé to Production: Integrating OWL Ontologies with Python"After creating the repository on GitHub, you'll see instructions. Use these commands:
# Replace YOUR_USERNAME with your GitHub username
git remote add origin https://github.com/YOUR_USERNAME/from-protege-to-production-python.git
# Rename branch to main (if needed)
git branch -M main
# Push to GitHub
git push -u origin mainIf using SSH instead of HTTPS:
git remote add origin git@github.com:YOUR_USERNAME/from-protege-to-production-python.git
git branch -M main
git push -u origin main- Go to your repository page on GitHub
- Verify all files are visible:
- ✅ README.md
- ✅ QUICKSTART.md
- ✅ All Python files
- ✅ restaurant-ontology.owl
- ✅ tests/ directory
- ✅ LICENSE
After uploading, update the repository URLs in these files:
- README.md - Line 14: Replace
<your-repository-url> - QUICKSTART.md - Line 14: Replace
<your-repository-url>
Then commit and push:
git add README.md QUICKSTART.md
git commit -m "Update repository URLs in documentation"
git push- Add description on GitHub repository page
- Add topics:
python,owl-ontology,owlready2,flask,rest-api,semantic-web,ontology-reasoning,tutorial - Enable GitHub Actions (go to Actions tab and enable)
- Add website URL (if you have one)
If git push asks for credentials:
- GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
- Generate new token with
reposcope - Use token as password when pushing
- Generate SSH key:
ssh-keygen -t ed25519 -C "your.email@example.com" - Add to GitHub: Settings → SSH and GPG keys → New SSH key
- Use SSH URL for remote:
git@github.com:USERNAME/REPO.git
# 1. Configure git (if not done)
git config user.name "Your Name"
git config user.email "your.email@example.com"
# 2. Create commit
git commit -m "Initial commit: Complete DineWise project with tests and documentation"
# 3. Add remote (after creating GitHub repo)
git remote add origin https://github.com/YOUR_USERNAME/from-protege-to-production-python.git
# 4. Push to GitHub
git branch -M main
git push -u origin main- Git user configured (name and email)
- Initial commit created
- GitHub repository created
- Remote added
- Code pushed to GitHub
- All files visible on GitHub
- Repository URLs updated in docs
- Repository description added
- Topics added
Solution: Use Personal Access Token or SSH keys (see Authentication section)
Solution: Check repository name and username are correct
Solution: If you made changes on GitHub, pull first:
git pull origin main --rebase
git push origin mainSolution: Make sure branch is named main:
git branch -M main
git push -u origin main- See SETUP_GITHUB.md for detailed instructions
- See GITHUB_CHECKLIST.md for pre-upload checklist
- GitHub Docs: https://docs.github.com/en/get-started
You're almost there! Follow the steps above to complete the upload! 🚀