您的位置:首页 > 编程语言

git代码复制到新项目(包含历史记录)

2017-03-13 00:00 190 查看
git push -–mirror 项目url

--mirror参数说明:

--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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git
相关文章推荐