Basic Usage Tutorial¶
This tutorial will walk you through the most common use cases for gi with step-by-step examples.
🎯 Tutorial 1: Python Web Development¶
Let's create a .gitignore file for a Python web application using Django.
Step 1: Start with Python¶
This creates a .gitignore file with Python-specific ignore rules.
Step 2: Add Django Framework¶
Now your .gitignore includes both Python and Django ignore patterns.
Step 3: Add Development Tools¶
Your .gitignore now covers Python, Django, and VS Code.
Step 4: Add Deployment Tools¶
Perfect! You now have a comprehensive .gitignore for a Python Django application.
🎯 Tutorial 2: Full-Stack JavaScript¶
Let's create a .gitignore for a React + Node.js application.
Step 1: Base JavaScript¶
Step 2: Add React Framework¶
Step 3: Add TypeScript¶
Step 4: Add Development Tools¶
🎯 Tutorial 3: Data Science Project¶
Let's create a .gitignore for a Python data science project.
Step 1: Python Base¶
Step 2: Add Jupyter Notebooks¶
Step 3: Add Data Science Libraries¶
🎯 Tutorial 4: Mobile Development¶
Let's create a .gitignore for a Flutter mobile application.
Step 1: Flutter Framework¶
Step 2: Add Platform Support¶
Step 3: Add Development Tools¶
🎯 Tutorial 5: Multi-Language Project¶
Let's create a .gitignore for a project with multiple languages.
Step 1: Backend (Python)¶
Step 2: Frontend (JavaScript)¶
Step 3: Development Tools¶
🔧 Advanced Techniques¶
Custom Output Locations¶
# Save to specific directory
gi main python django -o backend/.gitignore
gi main node react -o frontend/.gitignore
Appending to Existing Files¶
# Start with existing .gitignore
echo "# Custom rules" > .gitignore
echo "my-secret-file.txt" >> .gitignore
# Append Python rules
gi main python -a .gitignore
Preview Before Using¶
🎨 Using Aliases Effectively¶
Language Aliases¶
Framework Aliases¶
Tool Aliases¶
📋 Common Patterns¶
Web Development Stacks¶
# Python + Django
gi main python django vscode
# Node.js + React
gi main node react typescript vscode
# PHP + Laravel
gi main php laravel vscode
Mobile Development¶
# React Native
gi main node react-native
# Flutter
gi main flutter android ios
# Native iOS
gi main swift xcode
Data Science¶
Desktop Development¶
🚀 Pro Tips¶
1. Start Simple, Add Complexity¶
# Start with basic language
gi main python
# Add framework
gi main python django
# Add tools
gi main python django vscode
2. Use Aliases¶
3. Preview Templates¶
4. Combine Related Templates¶
🔍 Troubleshooting¶
Template Not Found¶
Too Many Rules¶
# Start with fewer templates
gi main python # Instead of python django flask
# Use specific templates
gi main python django # Instead of python django flask
Missing Rules¶
# Check if template exists
gi show Python
gi show Django
# Combine related templates
gi main python django vscode
📚 Next Steps¶
Now that you know the basics:
- Advanced Usage - Power user features
- Configuration - Customize your setup
- Best Practices - Professional workflows
Ready for more? Check out our Advanced Usage Guide!