GIT Series 1 installation first experience (Windows)

Source: Internet
Author: User

1. Baidu Cloud Disk Address

https://pan.baidu.com/s/1o8vAt78

2. After downloading, double click directly next to Next

3. Create a directory and create a file in the directory readme.cd

4. Put the project into git for management

Right click on the mouse and select Bash window

The first one to configure is your personal user name and email address. These two configurations are important, and each time Git commits, the two messages are referenced to indicate who submitted the update, so it will be permanently included in the history along with the update.

$ git config --global user.name "John Doe"$ git config --global user.email [email protected]
再输入 git init命令,出现如下.git文件则表示你的git安装成功


5. Put the readme.cd file in git for management

Enter the command git status, the following prompt appears;

The untracked table is the current state of the files in the project, the status of the files in the project is shown, untracked indicates that the secondary file has not been included in the project management, unmodifed that the document has been included in the document management,

And without modification, modified indicates that the file was included in the project management and modified; Staged indicates that the file was modified and placed in staging area pending submission (commit completion is unnodified status)

So, at present, we just put the document README.CD into the project management can,

Input

$ git add README. Cd

Then enter GIT status to view the status, changes to be committed indicates that the secondary file has been placed in the staging area (that is, the staged state), waiting for the commit

Then we submit the file

$ git commit-m "Enter your commit description" and then enter Git status, appearing as a slice, indicating that the files in the current project are in Git management and have not changed

GIT Series 1 installation first experience (Windows)

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.