简体   繁体   English

如何从另一台计算机更新现有的github存储库?

[英]How to update an existing github repo from a different computer?

I am working on my Android project from a different computer. 我正在从另一台计算机上处​​理我的Android项目。 After downloading Android Studio, I downloaded my project as a ZIP file and then made some changes on it through the IDE on the new computer. 下载Android Studio之后,我将项目下载为ZIP文件,然后通过新计算机上的IDE对其进行了一些更改。 I want to commit these changes to the existing repo through git but idk how to do that. 我想通过git将这些更改提交到现有的仓库中,但是idk如何做到这一点。 So far I couldn't find much on the internet for this specific problem. 到目前为止,对于这个特定的问题,我在互联网上找不到很多。

  1. Run git clone https://github.com/your/repo to clone your project on your computer. 运行git clone https://github.com/your/repo在计算机上克隆您的项目。 It will create a new folder containing your Android project 它将创建一个包含您的Android项目的新文件夹

  2. Copy your changed files in this new folder 将更改的文件复制到此新文件夹中

  3. You can now commit your changes from this folder 您现在可以从此文件夹提交更改

  4. In android studio, open the new folder instead of the one from the .ZIP 在android studio中,打开新文件夹,而不是.ZIP文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM