【问题标题】:AWS codecommit not able to clone repo completelyAWS codecommit 无法完全克隆 repo
【发布时间】:2018-06-10 14:00:07
【问题描述】:

original image at the aws codecommit repo

image of the same file when cloned and opened in editor

我从 aws 克隆了一个 repo,当我打开 repo 来检查文件时,其中的内容丢失了。我附上了原始文件的屏幕截图和克隆后的相同文件。

【问题讨论】:

    标签: git amazon-web-services clone


    【解决方案1】:

    您确定您与 AWS 存储库位于同一提交/分支吗?检查使用git log。一个 git repo 可以有多个分支。克隆后,默认分支通常是“master”。在您的 AWS 屏幕截图中,您显示了“开发”分支。要从“master”切换到“dev”,请使用:

    git checkout dev
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多