mirror of
https://github.com/git-tips/tips.git
synced 2024-09-22 00:01:00 +02:00
Merge pull request #95 from infertux/git-submodule-update
Add alternative to update submodules
This commit is contained in:
commit
93e25eb718
|
@ -481,6 +481,11 @@ __Alternatives:__
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git submodule update --remote
|
||||||
|
```
|
||||||
|
|
||||||
## Show all commits in the current branch yet to be merged to master
|
## Show all commits in the current branch yet to be merged to master
|
||||||
```sh
|
```sh
|
||||||
git cherry -v master
|
git cherry -v master
|
||||||
|
|
|
@ -173,7 +173,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Update all the submodules",
|
"title": "Update all the submodules",
|
||||||
"tip": "git submodule foreach git pull",
|
"tip": "git submodule foreach git pull",
|
||||||
"alternatives": ["git submodule update --init --recursive"]
|
"alternatives": ["git submodule update --init --recursive", "git submodule update --remote"]
|
||||||
}, {
|
}, {
|
||||||
"title": "Show all commits in the current branch yet to be merged to master",
|
"title": "Show all commits in the current branch yet to be merged to master",
|
||||||
"tip": "git cherry -v master",
|
"tip": "git cherry -v master",
|
||||||
|
@ -361,4 +361,4 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Clone a shallow copy of a repository",
|
"title": "Clone a shallow copy of a repository",
|
||||||
"tip": "git clone https://github.com/user/repo.git --depth 1"
|
"tip": "git clone https://github.com/user/repo.git --depth 1"
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user