Skip to content

Commit

Permalink
update submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
casionone committed Nov 7, 2023
1 parent b39a08e commit 4b2cd67
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/actions/chart-testing-action
Submodule chart-testing-action deleted from 2fffad
1 change: 0 additions & 1 deletion .github/actions/kind-action
Submodule kind-action deleted from fa81e5
22 changes: 22 additions & 0 deletions .github/info.md
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

0 comments on commit 4b2cd67

Please sign in to comment.