EDIT: According to @VonC in the comments I have a nested repo, not a submodule. However my problem remains the same below:
I created a branch off of my local repo to work on a new feature. The new feature required me to install the Azure PHP SDK via composer. Turns out that the Azure SDK has created a git repo of it's own within the /vendor
folder. So I now have a Submodule in this new branch.
I have committed everything within this branch, and when I do git status
I receive
nothing to commit, working directory clean
Now when I switch back to my master branch to merge this new feature branch and do a git status
I see:
Untracked files : vendor/
I have googled and seen that if I add
and commit
this vendor/
directory to the master branch, I will not be able to merge the new feature branch because of some sort of conflict. I think it will also mess up the submodule on the feature branch?!? I haven't tried to merge the new feature branch leaving the vendor/
untracked because I am not sure it will work, and I am not sure what it might screw up.
How should I proceed? I am sitting on the master branch, with the new feature branch sitting there with a submodule in vendor/
. And on the master branch the vendor/
folder is in untracked files.
What do I do to merge the feature branch successfully in to master?