Everyday sentence

Time is like a river, the left bank is unable to forget the memories, right is worth grasp the youth, the middle of the fast flowing, is the sad young faint. There are many good things, buttruly belong to own but not much. See the courthouse blossom,honor or disgrace not Jing, hope heaven Yunjuanyunshu, has no intention to stay. In this round the world, all can learn to use a normal heart to treat all around, is also a kind of realm!

操作回顾

首先先回顾一下需要用到几个常用git指令,git status查看当前分支情况,git remote -v 查看此时连接的仓库,git remote add upstream xxx添加上游仓库,git checkout -b xxx创建新的分支,git branch查看当前分支,然后对文件进行你想要的修改,add,commit,push把修改上传到自己的远程仓库,然后我们需要在github上选择pull request,创建新的request,提交。上游仓库的管理员会对我们提交的request有选择地进行merge

在我们的PR前,需要做一次同步,在master上git fetch(用pull = fetch + merge应该也可以达到同样的效果) upstream下拉远程分支,git rebase upstream(把upstream上的commit搬到master上,然后再剪切粘贴上本地的commit),git push origin master完成同步

rebase是剪切粘贴,只保留一条线。merge是合并两条分支,赋一个新的commit id

最后只需要考虑合并本地的修改和已经同步的master即可

项目介绍

如果你比较熟悉Java,那么你可做的实在太多了,Apache和Alibaba有非常多的开源项目等你去贡献