-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to update a submodule version to latest ? #80
Conversation
You should actually just update with normal git methods like it's a standalone repo and then add the repo and commit: cd submodule_name
git checkout master && git pull
cd ..
git add submodule_name
git commit -m "updating submodule to latest" |
yeah I just git pull as well. we could probably do with something like this but I dont get the name at all, readd? what is that? |
readd === re add || remove && add Good thing to automate, but I don't know a better name for it. |
oh I see. but yeah we should change how it's done anyway, typically like @paularmstrong mentioned you just |
There's also a |
|
+1 nice idea. Currently doing the usual:- git submodule foreach git pull origin master |
The other way to update submodule which tracks branch is:
|
Sorry for missing this! @manobi Still interested to complete this? If not any of you guys want to paw at it? |
@kshcherban the best way, thanks! I also like to use |
@spacewander Looks like we must bring in this? |
So, what name should we use for it?
|
pull-submodule? |
|
Ok, so name it as |
👍 |
pull-submodule? |
The following command will update all submodules to the latest
|
|
|
I always have to do this, there are a better way ?