作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在 github 中 fork 了一个项目,然后在这个项目上做了一个 git clone 以将所有源代码获取到我的机器上。
我对源代码做了一些修改,我的问题是:-
最佳答案
- How to commit my changes to the local git repository as well as my forked repository in github?
要为提交添加文件更改,请使用以下命令。
git add .
然后,进行本地提交
git commit
完成本地提交后,您可以将其推送到远程 GitHub 分支。
git push
- How will the author of the original source code, pull my changes from the forked repository in github
要让您的源代码被原始分支 pull ,您必须向项目所有者发送 pull 请求。
关于git - 如何将我的更改推送回 git 中的源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7036193/
我是一名优秀的程序员,十分优秀!