git push --mirror <origin>
将使远程的refs与本地存储库中的refs匹配,包括删除本地没有的分支.
来自git help push
:
--mirror Instead of naming each ref to push, specifies that all refs under refs/ (which includes but is not limited to refs/heads/, refs/remotes/, and refs/tags/) be mirrored to the remote repository. Newly created local refs will be pushed to the remote end, locally updated refs will be force updated on the remote end, and deleted refs will be removed from the remote end. This is the default if the configuration option remote.<remote>.mirror is set.
归档时间: |
|
查看次数: |
838 次 |
最近记录: |