git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Submodule confusion when checking out branch
@ 2011-10-11  9:38 Howard Miller
  2011-10-11 17:35 ` Jens Lehmann
  0 siblings, 1 reply; 2+ messages in thread
From: Howard Miller @ 2011-10-11  9:38 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-11 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11  9:38 Submodule confusion when checking out branch Howard Miller
2011-10-11 17:35 ` Jens Lehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).