Each "remote" entry has a name. default remote entry usually gets "origin" 
name. All others you can name yourself.

When you push you can spell out where, what , under what name

git push remotename localbranchname:remotebranchname

If you want remote branch name to be same as local:

git push remotename localbranchname

If you want to remove remote branch:

git push remotename :remotebranchname


On Thursday, November 8, 2012 12:27:02 PM UTC-8, Robson wrote:
>    Hi.
> I usually work in different machines, and I wonder how to set up a second 
> remote to the local repository in each computer to serve as a backup and 
> syncing tool between them. I plan to use github for this. And then, 
> assuming it is possible, how do I push selectively - to the backup remote 
> when switching computers and to the "actual" remote when finishing changes?
> I know it's possible, actually, but not how to do it. To make it clearer, 
> the project in question is an OSS with a git repository not hosted on 
> github.
> (I'm new to git, still learning.)
> Thanks in advance.


Reply via email to