Re: git: pushing a branch to a remote git repository
Micha <email@example.com> writes:
> I'm using a clone of a local git repository to backup the
> repository. The problem is that it seems that when pushing changes,
> only master is pushed to the remote repository instead of all the
> Is it possible to push/pull branches into an existing repository and
> make sure that a push updates everything including branches?
Instead of naming each ref to push, specifies that all refs under
$GIT_DIR/refs/ (which includes but is not limited to refs/heads/,
refs/remotes/, and refs/tags/) be mirrored to the remote
repository. Newly created local refs will be pushed to the remote
end, locally updated refs will be force updated on the remote end,
and deleted refs will be removed from the remote end. This is the
default if the configuration option remote.<remote>.mirror is set.