V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dulice
V2EX  ›  程序员

如何导出 git 的所有变更记录?

  •  
  •   dulice · 21 天前 · 255 次点击

    需求

    想要导出 git 地址的所有变更记录到另外一个 git 地址里面,这个有什么好的方法吗?请教各位大佬(/抱拳)

    3 条回复
    zhangpengju
        1
    zhangpengju  
       21 天前
    idea 可以直接提交到新的远程吧
    nuffin
        2
    nuffin  
       21 天前
    ```
    git remote add newrepo <new-git-repo-url>; git fetch origin; git push newrepo;
    ```

    git remote -v 可以查看当前目录所有 remote 的列表,.git/config 里也有。
    nuffin
        3
    nuffin  
       21 天前
    ```
    git remote add new repo <new-git-repo-url>;
    git push newrepo --all;
    git push newrepo --tags
    ```

    貌似不支持 markdown
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1154 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:36 · PVG 02:36 · LAX 11:36 · JFK 14:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.