-
.gitignore- Properly configured to exclude build artifacts -
README.md- Comprehensive project documentation -
CONTRIBUTING.md- Contributor guidelines -
LICENSE- MIT license file -
.git/- Git repository initialized
- Source code in
src/directory - Build scripts in root directory
- Documentation files in root
- No build artifacts committed to repository
-
build.py- Main build configuration -
build_enhanced.py- Enhanced cross-platform builds -
build_wrapper.py- Easy build interface - Platform-specific scripts in
build_dist/
- Windows 32-bit/64-bit portable builds
- Windows installer builds
- Linux 32-bit/64-bit portable builds
- Linux installer builds
- macOS portable builds
- macOS installer builds
- Android APK builds
- No untracked build artifacts
- No cached Python files committed
- No IDE configuration files committed
- No OS-specific files committed
# Check repository status
git status
# Check ignored files
git status --ignored
# Verify .gitignore effectiveness
python maintain_gitignore.py- Run
python maintain_gitignore.pyto verify exclusions - Check for untracked files:
git status --porcelain - Review
.gitignorefor missing patterns
- Clean repository:
git gc - Update dependencies in requirements files
- Review and update documentation
- Ensure all build targets work
- Verify no sensitive files are tracked
- Check repository size and clean if needed
- Update version numbers in documentation
Unwanted files being tracked:
# Stop tracking a file but keep it locally
git rm --cached filename
# Remove file from all git history (dangerous!)
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch filename' \
--prune-empty --tag-name-filter cat -- --allRepository cleanup:
# Remove untracked files (be careful!)
git clean -fd
# Remove untracked files and ignored files
git clean -fdx
# Preview what would be removed
git clean -fdxnReset .gitignore effects:
# Refresh git's ignore cache
git rm -r --cached .
git add .If repository becomes corrupted:
- Backup current work
- Clone fresh repository
- Copy only necessary files
- Re-initialize build system
- Restore from backup selectively
- Never commit build artifacts - Always use
.gitignore - Regular .gitignore maintenance - Run the maintenance script monthly
- Clean commits - Keep commits focused and meaningful
- Branch strategy - Use feature branches for development
- Documentation updates - Keep README and docs current with code changes
Last updated: [Current Date] Maintainer: [Your Name]