Re: git: pushing a branch to a remote git repository

2009-11-01 Thread Alan Chandler
On Sunday 01 Nov 2009, Micha wrote:
 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 branches.
 
 Is it possible to push/pull branches into an existing repository and
  make sure that a push updates everything including branches?
 
 Thanks
 

You can control what gets pushed via an entry in the .git/config file.
If you look at the snippet I include below of one of mine for a remote 
called publuc, you see that I am fetching everything, but pushing just a 
few branches back (those with the push lines) and renaming them in the 
process.

If you make a push line with *:* as its contents, I think you will 
then cause all branches to get pushed to the remote repository (but be 
careful that might not be what you want, as all the branches you are 
playing with will get pushed as well).

[remote public]
url = ssh://wol/home/alan/git/mbchat.git
fetch = +refs/heads/*:refs/remotes/public/*
push = master:master
push = mb:melindasbackups
push = old-test:old-mb





-- 
Alan Chandler
http://www.chandlerfamily.org.uk


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



git: pushing a branch to a remote git repository

2009-10-31 Thread Micha
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 branches.


Is it possible to push/pull branches into an existing repository and make sure 
that a push updates everything including branches?


Thanks


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: git: pushing a branch to a remote git repository

2009-10-31 Thread Ansgar Burchardt
Hi,

Micha mi...@post.tau.ac.il 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
 branches.

 Is it possible to push/pull branches into an existing repository and
 make sure that a push updates everything including branches?

man git-push?

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.

Regards,
Ansgar


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org