How do I update my bare repo?

后端 未结 7 770
滥情空心
滥情空心 2020-11-29 16:14

I created a bare repo to publish my repository, but I can\'t figure out how to update the bare repo with the current state of the main repository.

相关标签:
7条回答
  • 2020-11-29 16:57

    The only solution besides recreating with git clone --mirror is from Gregor:

    git config remote.origin.fetch 'refs/heads/*:refs/heads/*'
    

    then you can git fetch and you'll see the updates. The weird thing is that before this, even though there is a remote configured, it has no branches listed in git branch -a.

    0 讨论(0)
提交回复
热议问题