[Git] simple application of git remote Repository

Source: Internet
Author: User
Tags git client

[Git] simple application of git remote Repository

  

Some time ago, my brother asked me to look at git and said that he could learn more about some open-source things. This cainiao listened decisively and learned the relevant information from the Internet to see what it was. however, the brain capacity is limited and there is something temporary, so I just took the time to perform the actual operation recently. I only learned a very simple process and remember it for later use.

To put it bluntly, I registered an account in open-source China. For example, I haven't tried it in other places. It must have been similar.

1. Of course it is registered account go to https://git.oschina.net/signup with people's things, naturally to listen to people's instructions, fill a form

Like this:

2. download and install the GIT Client

Http://git-scm.com/download/win

I don't need to talk about this. I can't afford a high-end Mac, but I can only win one.

3. the following is how to find a project in the remote warehouse, which is a great deal for us. We don't need to talk about it as an administrator. If it is a private project of another person, ask the Administrator for the permission to add a developer to you.

There is a picture with the truth:

4. Okay. Finally, let's try it out. Clone the remote project to the local machine.

First look at the figure:

I changed this test project to public, and used it for testing, saving you some trouble,

Open the GIT client. Let's talk about the command line. It's a small figure.

You can configure the user name, email address, or something, which will be reflected in the log. Now you can configure it as needed. I don't know what the specific O (∩) O ~

You can view the configuration information.

The clone project below

$ git clone http://git.oschina.net/pengfeii/gitdemo2.git

Here, git clone is a keyword, and the following address is the project address, which is identified above

If the call succeeds, a message is displayed.

Like this:

Let's take a look.

$ ls

 

Result:

This is the cloned project.

$ ls gitdemo2

 

5. Make some effort to clone the project

1> View Projects

$ cd gitdemo2

2> modify content

$ vi README.md

You can type a command to save and exit.

:write
:quit

3> Save modified files

$ git add README.md

4> submit updates

$ Git commit readme. MD-M 'June 28, 2014 15:55:12 ';

5> push updates to a remote Repository

$ git push origin masterUsername for ‘http://git.oschina.net‘: 809241641@qq.comPassword for ‘http://[email protected]@git.oschina.net‘:

A new test account is used.

In this way, the data in the remote repository on the website is changed.

No trace of PS:

 

In short, this is the case. I am also a beginner in git, and I still don't know much about it, but I will use it for the time being. I will talk about it later.

If you have any errors, please correct them. In addition, visit http://git.oschina.net/progit/index.html to explain how gitworks.

 

 

 

 

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.