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