On Feb 15, 4:16 am, Daniel Trezub <daniel...@gmail.com> wrote:
> Ok, thanks. So, even if my remote repo is a brand-new one and my local repo
> is ages old with a lots of history, after the push the remote repo will have
> all my history?
If all your history is reachable from the branch head that you're
pushing to the remote, then yes, I think all of your commit graph will
be replicated. However, AFAIK, it doesn't imply that pushing master
will also push all the branches before it. You'd have all the commits,
but the remote wouldn't have other branches. Branches, as we know it,
are mere references or "soft links" to commits. The remote wouldn't
host a branch unless you push that branch itself.
For example, if you've a local branch named "topic", just 2 commits
behind "master", and you push master to the remote, any fresh clone
from the remote repo wouldn't have "topic" in it. To have a remote
branch "topic", you must push "topic" explicitly. Pushing "topic"
again wouldn't cause any data transfer as the commit is already
present in remote repo (as it's reachable from master when it was
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
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