【发布时间】:2019-08-08 13:30:21
【问题描述】:
我在我的 git bash 中使用这个命令将一个 git repo 克隆到我的电脑中
git clone https://github.com/xxx/yyy.git
它在我的电脑中创建了一个名为 yyy 的文件夹。
如何使用https://github.com/xxx/yyy.git 的新内容更新我电脑中的文件夹 yyy(是否称为远程仓库)?
我按照Updating a local repository with changes from a Github repository 中的说明进行操作,尤其是git pull origin master,但它们都不起作用并返回错误$ git pull origin master
fatal: Not a git repository (or any of the parent directories): .git。
我也尝试了git pull https://github.com/xxx/yyy.git,因为我推断如果我成功地做到了git clone https://github.com/xxx/yyy.git,git pull https://github.com/xxx/yyy.git 必须工作,否则 git 语法不是很好。
我应该再次“克隆”以覆盖我电脑中的现有文件夹吗?为什么我不能“拉”?
【问题讨论】:
-
git pull有什么错误? -
嗨阿努拉格。我刚刚用错误消息更新了问题。