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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

648 views 0 4
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