-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from t4d-gmbh/26-finish-revisions-submodules-s…
…ection 26 finish revisions submodules section
- Loading branch information
Showing
3 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
### Working with <i class="fab fa-git"></i> Submodules | ||
## Working with <i class="fab fa-git"></i> Submodules | ||
|
||
{% if slide %}- First **checkout a branch in the submodule**, as it is usually in "detached HEAD" mode.{%else%}Just do not forget that a submodule usually does not track a branch, so **before you start working in a submodule checkout the branch you want to work on**!{% endif %} | ||
{% if slide %} | ||
- First **checkout a branch in the submodule** since it typically operates in "detached HEAD" mode. | ||
{%else%} | ||
Remember that a submodule usually does not track a branch, so **before you start working in a submodule, checkout the branch you want to work on**! | ||
{% endif %} | ||
|
||
{% if slide %}- Inside a submodule folder **work as if it were an ordinary <i class="fab fa-git"></i> repository**.{%else%}Once the submodule is initialized, you can **work inside the submodule folder as if it were an ordinary <i class="fab fa-git"></i> repository**.{% endif %} | ||
{% if slide %} | ||
- Inside a submodule folder **work as if it were an ordinary <i class="fab fa-git"></i> repository**. | ||
{%else%} | ||
Once the submodule is initialized, you can **work inside the submodule folder as if it were an ordinary <i class="fab fa-git"></i> repository**. | ||
{% endif %} | ||
|
||
{% if slide %}- To **update the tracked commit** for a submodule, check out the desired commit and then **add the submodule's path to a commit in the parent repository**.{%else%}After making any changes in a submodule, simply **add the path to the submodule to a commit** in the parent repository to **update the commit that the parent repository should track**.{% endif %} | ||
{% if slide %} | ||
- To **update the tracked commit** for a submodule, check out the desired commit and then **add the submodule's path to a commit in the parent repository**. | ||
{%else%} | ||
After making any changes in a submodule, simply **add the path to the submodule to a commit** in the parent repository to **update the commit that the parent repository should track**. | ||
{% endif %} |