Git向开源代码提交流程:
1. 先fork到自己的repository.
2. 将自己的repository clone到本地,
3. 创建feature branch
4. 从主repository更新代码:
1) Add主repository: git remote add upstream https://location/of/generic.git
2) 更新代码:git pull upstream master
3) 更新 push url 防止checkin 到主repository: git config remote.upstream.pushurl "NEVER GONNA GIVE YOU UP"
5. 修改代码
6. push 到自已的repository
7. Merge到主repository