How to submit code to an open source project

If you want to participate in an open source project, you first need to Fork this project. Then view the project on your own homepage, clone the project to your local machine, and modify the code.


 Then submit the code, and then push the code to the repository under your own github.

 

need:

 

How to push the code to the original author's github repository?

 

There are two options:

Option 1, command line operation.

git remote add yzz url // yzz is just a custom remote warehouse code, you can call it whatever you like, url is the warehouse address of the original author's github.

 

After adding a new remote warehouse address, you can directly push the code to this remote address.

git push yzz master // This command means to merge the code to the master branch of the original author's repository. (Of course, the premise is that they have given you permission, or else you will be greeted with 403 after execution)

 

Option 2, github.com web interface operation.

One sentence is to create a pull request request for the original author to review.

 

 

If you don't understand adding multiple remote repositories to your git local repository, you can read my other blog post at the same time:

http://xigua366.iteye.com/admin/blogs/2400153

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326349862&siteId=291194637