installation, registration, and use of git

Source: Internet
Author: User

1, first need to download Git client, direct Baidu has, install directly click Next can.

2, need to register git account , address http://git.oschina.net/

3, create a project, set up a remote library, do not check the Readme, click Create

4, after the completion of the creation will appear some prompt commands, as follows:

5, at this time need to operate the local installed git client, install a local library, open the installation directory, click Git-bash.exe will appear DOS window, as follows:

6. Copy the code of the GIT account to create the project

7, press ENTER, if the copy code is successful, you will be prompted to enter a user name and password, enter and press ENTER if the following conditions are successful, then view the local installation directory will appear in the Test folder (local library), There are readme.md files in the folder, check the online library will have just uploaded readme.md file

At this point, the local library and the remote Library have established a connection to upload the project file, the next step is to understand the operation of GIT commands, the following is the simplest of several commands.

git add filename//Add a file to git index
Git commit-m "code submission Information"//Submit
Git push-u origin master//upload to remote
LS//view current directory
git status//view status

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.