github 今天药忘吃喽~ 2022-05-25 03:11 110阅读 0赞 Branching is the way to work on different versions of a repository at one time. On GitHub, saved changes are called commits. When you open a pull request, you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch. Pull requests show diffs, or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red. 建立一个仓库:每个项目一个仓库 修改流程:建立新的分支-修改分支-提交分支-融合分支到master **github同步到本地** 方法一:直接在客户端界面上点击clone 方法二:在项目列表上右键clone to ,这样保存路径比较自由,符合自己的习惯一点 **本地同步到github** 注意,这里的同步的文件目录必须是github同步过来的,就是说这个项目是通过浏览器在github上创建的,而不是直接把本地项目传上去,原因可以参考Reposity创建 1.将文件直接复制到映射到本地的Reposity文件夹里面 2.直接用Reposity的项目文件进行开发 3.在github GUI客户端中点击查看项目 4.如果代码被改动了的话,客户端里都有显示,在右边的框里填好修改备注然后submit,这样只是记录了提交动作,github中的文件并没有修改! 5.最上面一般有三个按钮 sync/refresh master tools 6.点击sync/refresh进行同步 一般你自己fork的分支代码使用的是sync 而如果你自己是主代码的话就是 refresh 了 成功的话github的代码也就修改成功了! 未完待续。。。
还没有评论,来说两句吧...