| title | 如何参与贡献? |
|---|
欢迎大家参与讨论,更欢迎大家多多的回馈社区,来开始共享吧!
第一步:Fork https://github.com/Apriluestc/2020 项目
- 访问 https://github.com/Apriluestc/2020
- 点击 Fork 按钮(顶部右侧),建立基于此的分支;
# Define a local working directory:
$ working_dir=/github.com/Apriluestc
$ user={your github profile name}
$ mkdir -p $working_dir
$ cd $working_dir
$ git clone https://github.com/$user/2020.git
$ cd $working_dir/2020
$ git remote -v
$ git remote add upstream https://github.com/Apriluestc/2020.git
$ git remote -v
# Never push to upstream master since you do not have write access.
$ git remote set-url --push upstream no_push
$ git remote -v让你本地 master 分支保持最新:
$ cd $working_dir/2020
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master从 master 开分支:
$ git checkout -b myfeature你现在能在 myfeature 分支上编辑代码/文档了。
请按照以下一些格式编写:
.h文件命名:2018-08-03-username-xxx.h,放到coding目录下
图片文件的图片:放到 img 目录下;
.md文件放在md目录下
文件内容:需要明确标题、日期等基本信息;
# While on your myfeature branch.
$ git fetch upstream
$ git rebase upstream/master提交你的修改:
$ git commit准备好审核:
git push -f origin myfeature- 访问你 fork 的 https://github.com/${user}/2020 (替换 $user);
- 点击 myfeature 分支旁边的 Compare & pull request 按钮;
一旦你的 Pull Request 被打开,它将被分配给审核者。 这些审核人员将进行彻底的代码审查,寻找正确性,错误,改进机会,文档和评论以及样式。