git - Visual Studio: Pushed solution to Team Services but won't push submodule -


i'm having trouble connecting team code because submodule did not pushed during initial commit. shows change needs committed, when try commit it, error says "fatal: unexpected sequence in commit output." i've looked everywhere , seems i'm 1 having problem. of course, team cannot pull code because not contain submodule. has else experienced before?

for adding submodule git repo , push remote, should use these commands:

git submodule add <sub repo url> git commit  git push 

then submodule pushed remote repo successfully.

to pull changes remote (including submodules) other developers:

git pull git submodule update --recursive 

to clone remote repo submodules:

git clone <url> --recursive 

or select recursively clone submodules using vs clone repo. enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -