N
N
Ninazu2018-04-19 14:09:39
git
Ninazu, 2018-04-19 14:09:39

How to commit directly to Git submodules in PHPStorm?

I have two projects, so to speak, the vendor is an open source code located on github, and the project with its implementation is closed and located on bitbucket. It will be convenient to pull the vendor as a submodule into the implementation project, since as the project is being written, new features are needed that have to be added to the vendor. Committing two projects separately is not always convenient. I want each project to commit to its own repository automatically. How to set it up correctly?
Handles added a nested module like this

cd ./vendor
git submodule add GITHUB_ADDRESS.git framework
cd ./framework
git submodule init
git submodule update
git add README.md
git commit -m "test"

Can I somehow configure JetBrains so that it understands that this is a nested module?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question