Synchronizing a local Git repository with a remote one

后端 未结 10 553
独厮守ぢ
独厮守ぢ 2020-11-30 16:00

I want to synchronize my local repository with a remote one so that my local repository becomes a 100% copy of the remote one - meaning that if certain files differ in these

10条回答
  •  孤独总比滥情好
    2020-11-30 16:31

    Sounds like you want a mirror of the remote repository:

    git clone --mirror url://to/remote.git local.git
    

    That command creates a bare repository. If you don't want a bare repository, things get more complicated.

提交回复
热议问题