- Name: packages/sage-libs/src/sage/libs/libamm
- Repository: https://github.com/DataSysResearch/LibAMM.git
- Branch: main-dev
- Path:
packages/sage-libs/src/sage/libs/libamm
# Navigate to this directory (if not already here)
cd packages/sage-libs/src/sage/libs/libamm
# Make your changes, then:
git add .
git commit -m "feat: your change description"
git push origin main-dev# Navigate back to main repository root
cd ../../../../../
# Add the submodule reference update
git add packages/sage-libs/src/sage/libs/libamm
git commit -m "chore: update LibAMM submodule reference"
git push origin main-devTo pull latest changes from the submodule repository:
# In this directory
cd packages/sage-libs/src/sage/libs/libamm
git pull origin main-dev
# Update reference in main repo
cd ../../../../../
git add packages/sage-libs/src/sage/libs/libamm
git commit -m "chore: update LibAMM to latest"Problem: You're in the main repository trying to commit submodule files.
Solution:
cd packages/sage-libs/src/sage/libs/libamm # Enter the submodule first
git add .
git commit -m "your message"Problem: You committed in the submodule but forgot to update the reference.
Solution:
cd ../../../../../ # Back to main repo
git add packages/sage-libs/src/sage/libs/libamm
git commit -m "chore: update LibAMM reference"Problem: Submodule is in detached HEAD state.
Solution:
cd packages/sage-libs/src/sage/libs/libamm
git checkout main-dev
git pull origin main-dev- Always work on the correct branch:
main-dev - Commit in submodule first, then update reference in main repo
- Push both repositories to share your changes
- Pull both repositories when updating
📚 For more details, see CONTRIBUTING.md
🤖 This file is auto-generated by tools/git-tools/generate-submodule-markers.sh