Re: fetch for bare repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 13, 2012 at 02:42:03PM +0400, Dmitry A. Ashkadov wrote:
> Hello!
> 
> I can't understand how to fetch branches from external repository
> for bare repository.

What you probably want is a mirror (git clone --mirror). Unless you
tell git that you want a mirror, it's going to assume that you want a
bare repo to push your own changes up to it. Such a repo has no need
to be kept up to date, so clone doesn't set up any fetch refspecs.

Stepping back, do you need to fetch those branches into the private
repo? If you still have access to the main repo and that's where the
main project development is happening, why not use upstream's repo to
get those changes to your local repo (as in the one you use to work)?
It sounds like you're trying to replicate a centralised VCS'
workflow. Git works like a network and you can merge a branch from
upstream if you need to and then push to the private repo.

   cmn

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]