Git-How to modify an open source project and push it to the author/clone remote repository to the local

Source: Internet
Author: User
Tags ssh git clone

Description: This note completes the clone remote warehouse to the local 1 on CentOS 7 . Configure the Public key

[Root@kangvcar ~]# ssh-keygen-t rsa-c "kangvcar@126.com"
[Root@kangvcar ~]# cat. Ssh/id_rsa.pub
Note: After generating the key pair locally with Ssh-keygen, add the public key to the GitHub
2. Installing Git services
[Root@kangvcar ~]# yum-y Install git
3. Configure Basic Environment Parameters
[Root@kangvcar ~]# git config--global user.name "Kangvcar"
[root@kangvcar ~]# git config--global user.email "KANGVCA R@126.com "
4. Clone remote Warehouse to local
[Root@kangvcar ~]# git clone git@github.com:kangvcar/cprogramming.git
# Note: git@github.com:kangvcar/ Cprogramming.git address is replicated on GitHub, # The
remote warehouse is cloned to a folder named Cprogramming under the local current directory after successful execution.

the first 4 steps above are clones of your own GitHub projects to local How to modify someone else's project and submit it to the original author.

Because I can only add my local public key to my GitHub, but not to other people's GitHub account, so can only clone their own GitHub warehouse projects, and can not clone other people in the warehouse project. So what if we want to modify someone else's project and then make the changes ourselves and submit it back to the original author? First of all, you must not directly clone the address of someone else's GitHub project, because you do not have the public key in someone else's GitHub warehouse, so I would like to put someone else's project fork to their GitHub, and then in the clone to local, after the local modification is completed, submitted to the original author. the specific steps are as follows: first open the project with the Web page, and then fork to their warehouse to use their own warehouse in the corresponding items of the address cloned to the local modification completed, the changes in the local push pushed to their own github Then use the Web page to open your own GitHub project, find the project corresponding to the new Pull request button can be pushed to the original author of the final if the original author accepted, your changes will be merged into the original author's project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.