How do I get back my submodules listing?

I have a repo that has submodules. They were displaying fine for a long time, but now they have disappeared from the repo's tree view. The repo still has those submodules, they are just not displaying in the tree – and thus not able for me to work with. Any idea what might have caused this to happen?

3 answers

I have the same problem. I tried to add one of the missing submodules but git says it still in the index.

I went into terminal mode and typed:

git submodule status

I get back:

bash.exe: warning: could not find /tmp, please create!

Is this the problem? What does it mean?

Try cloning a fresh copy of the repo to a different folder and then init and update the submodule. If that works from the terminal try doing the same from sourcetree. If it doesn't work from sourcetree hopefully you can at least bookmark in sourcetree the one that worked from the terminal and see everything again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,230 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you