Use of the Python crawler Git (Origin description)

Source: Internet
Author: User

1, first of all we recall two commands

#git Remote Add origin repository link

#git Push-u Origin Master

Let's take a look at this command, git is a git command, push is the download,-u should use the account to verify that Maser is the name of the branch (as we said before), then what is Origin a ghost?

Look at this 5 cents figure below, you can find out, in fact, origin is the name of the remote repository.

If you don't believe in looking at my configuration file

#vi. Git/config

2, that is how to do it, first we should be on GitHub and coding.net on the establishment of two identical remote warehouses, and then nothing to add.

I'm looking for a normal folder, and here's what I do in the Linux root directory, starting with Git clone on GitHub (sync down to GitHub's build repository), and then the local repository has the same repository as GitHub. The previous operation let GitHub alias is origin, but I want to let Coding.net also have an identical "copy", then I let coding.net on the name of backup. So look at the file configuration above to understand.

2.1. First, I sync the repositories on GitHub to local.

#git Clone Https://github.com/MrLHD/test_git.git

2.2, then, this time there is a local test_git warehouse.

2.3, I make certain changes to the local warehouse, and then submit to the remote warehouse, test and GitHub warehouse upload and download is normal.

2.4, then I want to connect coding.net on the same name warehouse, remember, this time do not download, first upload, and then tell git this coding.net alias is backup, the local changes to sync up.

Git remote add backup https://git.coding.net/MrLHD/test_git.gitgit push-u backup  Master

2.5, this time the following figure is automatically generated

The master branch on my GitHub

    

I coding.net the information on the master branch.

    

Where to submit the submission from this point on:

#git push-u Backup Master (the remote repository submitted to the backup alias, i.e. coding.net)

#git Push-u Origin Master (a remote repository submitted to the alias of origin, which is GitHub)

    

Use of the Python crawler Git (Origin description)

Related Article

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.