Skip to content

Commit 552e635

Browse files
author
Ziming M
committed
add readme file.
1 parent e5a738e commit 552e635

File tree

2 files changed

+66
-3
lines changed

2 files changed

+66
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![HitCount](http://hits.dwyl.io/ML-ZimingMeng/LeetCode-Python3.svg)](http://hits.dwyl.io/ML-ZimingMeng/LeetCode-Python3) [![GitHub forks](https://img.shields.io/github/forks/ML-ZimingMeng/LeetCode-Python3)](https://github.com/ML-ZimingMeng/LeetCode-Python3/network) [![GitHub stars](https://img.shields.io/github/stars/ML-ZimingMeng/LeetCode-Python3)](https://github.com/ML-ZimingMeng/LeetCode-Python3/stargazers) [![GitHub license](https://img.shields.io/github/license/ML-ZimingMeng/LeetCode-Python3)](https://github.com/ML-ZimingMeng/LeetCode-Python3/blob/master/LICENSE)
44

5-
[usEnglish Document](README_en.md) | 中文说明
5+
[usEnglish Document](README_en.md) | 中文说明
66
## 简介
77
「LeetCode-习题集」是由热爱算法的 LeetCoders 上传的代码集,我们的目标是贡献所有题解!如果您想成为代码贡献者,体会 GitHub 协同合作的乐趣,请阅读 [issue](https://github.com/ML-ZimingMeng/LeetCode-Python3/issues/1) 中的提交准则,提交属于您自己的代码!
88
## 如何刷题
@@ -36,9 +36,11 @@
3636
### 2. 按「题号」
3737
- [第 001 题 ~ 第 1340 题](/source/All_Solutions)
3838
- [周赛 & 双周赛](/source/weeks)
39-
> 如果觉得有帮助到您,您的点亮✨Star将是我前进的动力^_^
39+
40+
41+
4042
## 关于作者
41-
如果您有更好的建议,欢迎联系我,共同进步😄
43+
点亮✨Star,共同进步~
4244
- 我的博客:[ziming.xyz](https://www.ziming.xyz/)
4345
- LeetCode主页:[Pumpkin🎃](https://leetcode-cn.com/u/ml-zimingmeng/)
4446
- 微信: 🔰925730493
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# 从零开始 Github 多人协作
2+
3+
### 前言
4+
5+
在 GitHub 上进行协同合作是每一位编程的小伙伴的必备技能,但是对于一些火热的开源项目,我们往往不知道该做何贡献,也对自己贡献的代码能否被采用感到信心不足,因此门槛较高。而在这里通过贡献自己的力扣代码,从普通的 pull request 开始参与协作,让每一位童鞋都能参与其中。操作简单门槛低,一起开始吧!
6+
7+
### 准备工作
8+
9+
1. [注册 github 账号](https://github.com/)
10+
11+
2. [安装版本控制工具 Git](https://git-scm.com/)
12+
13+
> 如果无法下载 Git,请百度或者联系作者。
14+
15+
### 具体步骤
16+
17+
1. 进入习题集 [仓库](https://github.com/ML-ZimingMeng/LeetCode-Python3),点击右上角 Fork,将仓库 Fork 到自己的仓库内;
18+
19+
![fig 1](https://i.loli.net/2020/03/01/UXNo8uv3VBnSqOz.png)
20+
21+
2. 先点击 Branch:master 按钮,在下拉列表中填写分支名称,并切换到该分支;
22+
23+
![fig 2](https://i.loli.net/2020/03/01/2gzZR4qeplMaGTJ.png)
24+
25+
在这里,创建了 newbranch 分支,如下图:
26+
27+
![fig 3](https://i.loli.net/2020/03/01/yq7CzYx8hdOuMfi.png)
28+
29+
3. 点击 Clone or Download,然后在下拉列表中点击链接右侧的按钮,这时复制了仓库的链接;
30+
31+
![fig 4](https://i.loli.net/2020/03/01/n53Q1AeWM6wuByI.png)
32+
33+
4. 在本地目录(自己选择,比如桌面)右键,点击 Git Bash Here:
34+
35+
![fig 5](https://i.loli.net/2020/03/01/z3CIZVyoSO14c5R.png)
36+
37+
输入 `git clone https://github.com/xxx(粘贴刚才复制的链接)`,回车:
38+
39+
![fig 6](https://i.loli.net/2020/03/01/8vSmycrT4h52E3B.png)
40+
41+
1. 这时开始将仓库拉取到本地,当完成时就可以对本地文件进行修改了,比如增加代码等;
42+
43+
2. 当对本地仓库文件修改完毕时,再次打开 Git Bash Here,输入以下行内容:(文字为解释,不要输入文字部分)
44+
45+
```c
46+
git add . // 将文件更新
47+
git commit -m "original commit" // 提交到分支,并添加说明
48+
git push -u origin master english // 将更新内容推送到分支 english 上
49+
```
50+
51+
7. 回到自己 Fork 的仓库,切换到刚刚创建的分支上,点击 Branch:master 按钮右边的 New pull request:
52+
53+
![fig 7](https://i.loli.net/2020/03/01/LWef9CASuozI4Bx.png)
54+
55+
之后添加说明之后点击确定就成功完成了一次您的提交!
56+
57+
### 接下来的工作
58+
59+
接下来可以在仓库的 issue 选项卡中进行提交是否符合规范等方面的讨论,事实上,有任何问题都可以在此进行讨论!
60+
61+
如果您的提交没有任何问题,您的提交将被合并!您将成为一名 contributor!

0 commit comments

Comments
 (0)