1. Use of remote repository (GitHub)

Source: Internet
Author: User

1. log on to GitHub to create a repository (Remote repository)

(1) log on with the GitHub account and password

(2) Click+Click new repository and enter repository name. Click Create repository to create a remote repository.

(3) The repository address is displayed on the page.

 

2. Use git clone locally to clone the remote repository project

(1) In any local location, right-click -- git bash her -- git clone -- https://github.com/XX/Demo.git

3. Create a text file locally and use the command to submit it to the GitHub remote repository.

(1) any new read.txt, any input content

(2) git add read.txt

Git commit-M "XXX" (XX inputs are remarks)

Git remote add origin [email protected]: xxx/learngitup. Git

Git push-u origin master

4. Create a file in the remote repository and run pull locally.

(1) On the remote repository GitHub -- create new file, create a main. Java text

(2) Right-click locally -- git Bash here -- git pull, that is, the main. Java text created in the remote repository. You can see it locally.

5. How to delete a remote Repository

(1) Select the deleted project -- setting -- delete this repository -- enter the name of the selected project in the pop-up window -- click Delete

1. Use of remote repository (GitHub)

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.