Today let's learn how to make our own contributions to open source projects!

(Hee hee, think about it, if one day a foreign name appears in a large list of contributors in foreign open source projects, how excited it would be)

So today we will use WeBank's FISCO BCOS as a demonstration (although I was taught by the excellent brothers of WeBank, but the use and advantages of git are really very important to us!

For any open source project, the biggest charm is not to complete all the project processes by one person, but to allow more people to participate in it. Distributed collaboration is a wonderful experience, and At present, many high-tech industries will use this method to further promote the technical level of the project, and gather everyone's talents to make a style.

First of all, let's find the github page of FISCO BCOS: https://github.com/FISCO-BCOS/
You will find many project partitions, which are the division of work of Weizhong itself, and what we can do is to correct their mistakes , and even upload some of our own new ideas and original ideas for the project. Today we will take the node.js jdk developed by FISCO BCOS as an example to modify some codes and make our own sharing (all open source projects are very welcome to show yourself If you have the talent, or even correct the code style, etc.)
first go to the project file of node.js jdk;,
click FORK in the right corner, copy the code of the remote warehouse to your own project;
then click the Clone and Download buttons, click clone (clone file)

Open your own Linux system, take centos as an example (if you have not downloaded git, use yum -y install git) and
enter the command
: git clone (paste the text of clone directly) For example:
1 · git clone https://github.com/ wangxingaoyan/nodejs-sdk.git
2· ls to view the file directory
3· Enter the directory and use cd (here for the packages folder in the middle of the node.js file)
--------cd packages
4·cd into the packages cli
---------cd cli
5·cd Enter the crud.js of the interfaces to modify
and then modify (use vim, if you don't use yum -y install vim directly)
the effect picture
git status to see the statusinsert image description here

After saving the edit,
use git add -A to view and keep the local warehouse
git status to see the status.
Use git commit -m "(what is modified in the middle)"
to complete a pr, and wait for the project party's review and subsequent approval to complete I have made a contribution; (This requires the github permission of the project party, next time the picture is above)

The financial technology competition has just ended, and the poet has also learned a lot. I suggest that friends in the same field do more projects and grow the fastest! The future can be expected, let's work hard together, and tell the poet directly if there is anything wrong!

Guess you like

Origin blog.csdn.net/gaoyanwangxin/article/details/100088057