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
Comments
Post a Comment