Synchronizing a local Git repository with a remote one

后端 未结 10 522
独厮守ぢ
独厮守ぢ 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:26

    You can use git hooks for that. Just create a hook that pushes changed to the other repo after an update.

    Of course you might get merge conflicts so you have to figure how to deal with them.

提交回复
热议问题