https://github.com/andy-leo10/submodules_practice
https://github.com/andy-leo10/submodules_practice
git-submodules
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andy-leo10/submodules_practice
- Owner: Andy-Leo10
- Created: 2024-02-09T14:00:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T20:01:08.000Z (almost 2 years ago)
- Last Synced: 2025-06-25T02:40:23.471Z (7 months ago)
- Topics: git-submodules
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# submodules_practice
After cloning your repo on your local PC, add the submodules with:
git submodule add https://github.com/yourusername/myrepo.git
To update with the content all the submodules use inside root:
git submodule init
git submodule update
When changes were made to a submodule do this setup first:
git checkout main
Then inside any Repo use it as usual
---
Then for new updates use:
git submodule update --remote
For manual push use:
git push origin main