5.4 KiB
5.4 KiB
Manual Git Setup for railseek6 Repository
Since Git is not available in the system PATH and the Gitea git.exe has issues, here are manual instructions to set up the Git repository.
Repository Information
- URL: https://git.mtrcompute.com/jleu3482/railseek6
- Clone URL: https://git.mtrcompute.com/jleu3482/railseek6.git
- Credentials: jleu3482 / jleu1212
Option 1: Install Git for Windows (Recommended)
Step 1: Download and Install Git
- Download Git for Windows: https://git-scm.com/download/win
- Run the installer with default options
- Make sure to select "Add Git to PATH" during installation
Step 2: Set Up Repository
# Open PowerShell or Command Prompt in the project directory
cd C:\aaWORK\railseek6
# Initialize git repository
git init
# Configure user information
git config user.name "jleu3482"
git config user.email "slclabs@gmail.com"
# Add remote repository
git remote add origin https://git.mtrcompute.com/jleu3482/railseek6.git
# Create .gitignore
echo "# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# Virtual Environment
venv/
env/
ENV/
env.bak/
venv.bak/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# LightRAG specific
rag_storage/
inputs/__enqueued__/
extracted_images/
extracted_images_test/
openclip_env/
openclip_gpu_env/
*.log
stderr.txt
stdout.txt
download_test/" > .gitignore
# Stage all files
git add .
# Commit changes
git commit -m "Initial commit: LightRAG project with document download and auto-commit
Includes:
- LightRAG main codebase with GPU-accelerated OCR
- Document download endpoint implementation
- Web UI with clickable document references
- Auto-commit system for Git
- Test scripts for workflow validation
- Configuration files and documentation
Features implemented:
1. Document download API endpoint (/api/documents/download/{filename})
2. Clickable document references in search results
3. Secure file serving with authentication
4. Auto-commit functionality for major changes
5. Complete test workflow validation"
# Push to remote
git push -u origin main
# If main branch doesn't exist, try:
git push -u origin master
Option 2: Use VS Code Git Integration
Step 1: Open VS Code
- Open the
C:\aaWORK\railseek6folder in VS Code - Go to Source Control panel (Ctrl+Shift+G)
Step 2: Initialize Repository
- Click "Initialize Repository" button
- VS Code will create a .git folder
Step 3: Stage Files
- Click "+" next to "Changes" to stage all files
- Or selectively stage files as needed
Step 4: Commit
- Enter commit message: "Initial commit: LightRAG project with document download and auto-commit"
- Click "Commit" button
Step 5: Add Remote and Push
- Click "..." menu in Source Control panel
- Select "Remote" → "Add Remote"
- Enter:
https://git.mtrcompute.com/jleu3482/railseek6.git - Name:
origin - Click "Publish Branch" button
Option 3: Use GitHub Desktop or Other Git Client
- Install GitHub Desktop: https://desktop.github.com/
- Add repository: File → Add Local Repository
- Select
C:\aaWORK\railseek6 - Commit changes with appropriate message
- Publish repository to:
https://git.mtrcompute.com/jleu3482/railseek6.git
Auto-Commit System (After Git Setup)
Once Git is set up, use the auto-commit helper:
# Make your changes to the project
# Auto-commit with description
python git_auto_commit_final.py "Added new feature or fixed issue"
# Or use the simple helper
python simple_auto_commit.py "Description of changes"
Files to Include in Repository
Essential Files (Should be committed):
LightRAG-main/- Main LightRAG codebaseinputs/- Document input directory (except__enqueued__/)*.py- All Python scripts*.md- Documentation files*.json- Configuration filesrequirements.txt- Dependencies
Files to Exclude (in .gitignore):
rag_storage/- RAG database filesinputs/__enqueued__/- Processed documentsextracted_images/- Extracted imagesopenclip_env/- Virtual environments*.log- Log filesstderr.txt,stdout.txt- Output logs
Verification
After setup, verify the repository is working:
- Visit: https://git.mtrcompute.com/jleu3482/railseek6
- You should see all project files
- Make a small change and test auto-commit:
echo "# Test" >> TEST.md python git_auto_commit_final.py "Test auto-commit system" - Refresh the repository page to see the new commit
Troubleshooting
Authentication Issues
If prompted for credentials:
- Username:
jleu3482 - Password:
jleu1212
Push Rejected
If push is rejected, try:
git pull origin main --allow-unrelated-histories
git push -u origin main
Git Not Found
If git command is not found:
- Install Git for Windows (Option 1 above)
- Or use VS Code Git integration (Option 2)
- Or restart terminal after installation
Next Steps After Git Setup
- Restart LightRAG server to activate download endpoint
- Test complete workflow:
python test_workflow.py - Make regular commits for major changes
- Monitor repository at https://git.mtrcompute.com/jleu3482/railseek6
Support
If you encounter issues:
- Check if Git is installed:
git --version - Verify repository URL is correct
- Ensure credentials are correct: jleu3482 / jleu1212
- Check network connectivity to git.mtrcompute.com