-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
Submodule chart-testing-action
deleted from
2fffad
Submodule kind-action
deleted from
fa81e5
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Update a submodule to the latest commit | ||
|
||
Since git 1.8 you can do | ||
``` | ||
git submodule update --remote --merge | ||
``` | ||
This will update the submodule to the latest remote commit. You will then need to add and commit the change so the gitlink in the parent repository is updated: | ||
|
||
First, git add it | ||
``` | ||
git add project/submodule_proj_name | ||
``` | ||
then git commit it | ||
``` | ||
git commit -m 'gitlink to submodule_proj_name was updated' | ||
``` | ||
the git push it | ||
``` | ||
git push | ||
``` | ||
|
||
more detail can refer:https://stackoverflow.com/questions/8191299/update-a-submodule-to-the-latest-commit |