I have a kohana email module(modules/email) as a git submodule in my project and the email module has a git submodule itself(vendors/swiftmailer).
When I init the swiftmailer submodule from within the modules/email submodule it shows the the modules/email is modified.
I don’t want to commit it because I didn’t change it plus I committed it before and it broke my git index(which I spent too much time fixing).
What should I do? Add it to .gitignore or is there something better?
I have little experience with git submodules. So thanks for any advice.
I have a kohana email module( modules/email ) as a git submodule in my
Share
Whenever you edit your
submodule, you should commit it with message like"Update submodule: xxx".So when you had edited
swiftmailer, yourmodules/emailshould be committed after theseiftmailercommitted.This way is recommended in
submodule. And note you should not ignore it.