2.7 KiB
2.7 KiB
Remote Repository Setup Instructions
The local git repository has been initialized and the initial commit has been made. To complete the submodule setup, follow these steps:
Step 1: Create Remote Repository
- Go to your git hosting service (GitHub, GitLab, Bitbucket, etc.)
- Create a new repository:
- Name:
dbis-arbitrage(or your preferred name) - Visibility: Private or Public (your choice)
- Initialize: ❌ Do NOT initialize with README, .gitignore, or license
- Keep it empty
- Name:
Step 2: Add Remote and Push
Once you have the remote repository URL, run:
cd /home/intlc/projects/proxmox/dbis_core/src/core/defi/arbitrage
# Add remote (replace <your-repo-url> with actual URL)
git remote add origin <your-repo-url>
# Verify remote
git remote -v
# Push to remote
git push -u origin main
Example URLs:
- GitHub:
https://github.com/your-org/dbis-arbitrage.git - GitLab:
https://gitlab.com/your-org/dbis-arbitrage.git - SSH:
git@github.com:your-org/dbis-arbitrage.git
Step 3: Add as Submodule to Parent Repository
After pushing to remote, add it as a submodule:
cd /home/intlc/projects/proxmox
# Add submodule (replace <your-repo-url> with actual URL)
git submodule add <your-repo-url> dbis_core/src/core/defi/arbitrage
# Commit the submodule addition
git add .gitmodules dbis_core/src/core/defi/arbitrage
git commit -m "Add arbitrage tool as submodule"
Step 4: Verify Submodule
cd /home/intlc/projects/proxmox
# List submodules
git submodule status
# Update submodules (if needed)
git submodule update --init --recursive
Current Status
✅ Local git repository initialized
✅ Initial commit completed
✅ All files committed
⏳ Waiting for remote repository URL
⏳ Ready to push to remote
⏳ Ready to add as submodule
Quick Commands Reference
# Check current status
cd /home/intlc/projects/proxmox/dbis_core/src/core/defi/arbitrage
git status
git log --oneline
# Add remote (after creating remote repo)
git remote add origin <url>
git push -u origin main
# Add as submodule (from parent repo)
cd /home/intlc/projects/proxmox
git submodule add <url> dbis_core/src/core/defi/arbitrage
Troubleshooting
If remote already exists
git remote remove origin
git remote add origin <new-url>
If branch name is different
# Check current branch
git branch
# Rename if needed
git branch -M main
# Or push to existing branch
git push -u origin <branch-name>
If submodule path conflicts
# Remove existing directory if needed
rm -rf dbis_core/src/core/defi/arbitrage
# Then add submodule
git submodule add <url> dbis_core/src/core/defi/arbitrage