Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几个月前,我从 Github 下载了一个大的 zip 文件。我决定更改项目的某些部分。我解压缩了文件内容并犯了一个错误并执行了这些行:
git init git add . git commit -a git fetch https://github.com/Path_To_Project
最后一行下载了大量数据,我认为它会自动将其与我的本地文件合并。
现在,我看到我的本地项目没有更新。.git/objects文件夹中仍然有大量数据。如何将这些数据合并到我的项目中?
.git/objects
如果您执行以下操作,它将合并:
git pull https://github.com/Path_To_Project
或者,因为您已经获取:
git merge origin/master