[英]How to push modified files into github project repo
I really have no clue how to use Git and so far I've only used github.com to upload changes which is not practical. 我真的不知道如何使用Git,到目前为止,我仅使用github.com上传不实际的更改。 I'm really confused on how to setup git with android studio and simply push the changes that I make through android studio. 我真的很困惑如何使用android studio设置git并简单地通过android studio进行更改。 The project repo already exists and I cloned it. 项目存储库已经存在,我已将其克隆。 Then I need to push the modified files into a branch. 然后,我需要将修改后的文件推送到一个分支中。
Can anyone help me? 谁能帮我? Thank you 谢谢
First of all, If you clone
some other repo, you can not push
it directly from your local machine. 首先,如果clone
其他仓库,则不能直接从本地计算机push
它。 You need to fork
the project first. 您需要先fork
该项目。 Then clone it through 然后通过克隆
git clone url
after that change some files and add them through 之后,更改一些文件并通过添加它们
git add .
Put some commit status there using 使用以下方式放置一些提交状态
git commit -m "file changing message"
then push it in your repo 然后将其推送到您的仓库中
git push origin master
finally send a pull request
to the author. 最后向作者发送pull request
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.