Submodule confusion when checking out branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I added a submodule to my project like this (all from the root of the project)

git submodule add git@.....   path/to/submodule
git submodule init
git add path/to/submodule
git commit -m 'I added a submodule!'
git push

All looks good and 'git status' reports 'nothing to commit'

However, I now cannot change branches. On checkout, I get...

"error: The following untracked working tree files would be
overwritten by checkout:"
(followed by a big list of all the files in the submodule)

Where did I go wrong and what can I do to sort it?

Thanks again!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]