mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-14 17:44:20 +01:00
34 lines
555 B
Markdown
Executable File
34 lines
555 B
Markdown
Executable File
|
|
|
|
# Submodule
|
|
## Add submodule
|
|
git submodule add <remote_url> <destination_folder>
|
|
|
|
git commit -m "Added the submodule to the project."
|
|
|
|
git push
|
|
|
|
git submodule update --init --recursive
|
|
|
|
## Submodule commit
|
|
|
|
cd <repository-dir>
|
|
|
|
git add .
|
|
|
|
git commit -m "Added new commits from the submodule repository"
|
|
|
|
git push
|
|
|
|
## Submodule summary
|
|
git config --global status.submoduleSummary true
|
|
|
|
|
|
## Update submodule if submodule has changed
|
|
git submodule update --remote --merge
|
|
|
|
git commit -m "Submodule updated!"
|
|
|
|
## Remove submodule
|
|
git rm <path-to-submodule>
|