I've cloned a fresh repo with submodules and then cd library/module && git
it gives me a warning and I don't understand why and how to avoid it?
Warning: you are leaving 30 commits behind, not connected to
any of your branches:
2553655 Merge branch 'master' into prod
6b07300 Fix build
... and 28 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch new_branch_name 654646464
Branch master set up to track remote branch master from origin.
Switched to a new branch 'master'
What is going wrong here? How did we managed to have commits not connected
to any of branches?
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at