I've been using Git for a little while, but can't seem to find a simple answer for the question "When I clone a Git repository do I get the whole thing?"
I know you can clone a repository into a directory, but I got the impression that clones the main branch. What about all the other branches?
I know there are ways using very simple script lines on most platforms to get a copy every remote branch (How to clone all remote branches in Git?).
So as the documentation for Git (https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository) describes distributed repositories as being complete backups of each other (up to however in sync they are), is my cloned repository on the development branch a complete copy, or am I missing information from the release/staging branches for example?
Apologies in advance if this has been asked elsewhere or in a different way, but I couldn't find anything with a simple definition.
edit: Please provide any link to any official documentation if possible to backup any statements. The question is relating to getting a whole copy of a repository with all the information such as which commits all the branches point to.