GitHub Learning Note Two • Remote End control

Source: Internet
Author: User
Tags git shell

For the remote, when you create a new project, you need to create a new page, in the new project page, there will be a hint you upload the local project to this remote method of the code, direct copy paste to Git shell can solve the problem, no longer detailed.

When you upload code to an existing code, you first need to connect to the remote

git remote add remote-name https://XXX.XXX.XXX

If you want to upload your local code after you have established a connection, just use

git push remote-name branch-name

Yes, the default remote name is origin, and the default branch name is generally master

When you want to get the files/updates that you don't have locally from the far end of the connection, you need to use

git fetch remote-name

To crawl. What I'm not saying here is that you can crawl the entire project from any link in the project to the local via a called

git clone Https://XXXX.XXXX.XXX ...

, clone is actually the most first to say, I put the knowledge of the system here, clone is actually some kind of simplified operation of the remote to the local, clone after you will get a default remote Name:origin and a default branch:master. And, your project is not connected to the far end, which is called clone.

It is not possible to remove the entire project through command line operations, and it is necessary for the project owner to remove it from the setting of the project page. You can, however, remove individual project files. (local removal As mentioned above, then upload it) you can also remove the association with a project by

Git remote RM remotename

In addition, the name of the far end you can also change (since you are casual), through

git remote rename orignal-name new-name

In addition, you can use

git tag

To hit the version number, the specific content of the self-search is no longer detailed.

GitHub Learning Note Two • Remote End control

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.