Git initial configuration and use basic commands

First, that what is Git, Git and GitHub a lot of people will be confused. Git is a version control tool; GitHub is a web site, but is based on the Git. Installation Git not tired, self Baidu. Here under the Master said, using the initial configuration and run Git Git basic commands.

First run Git configuration (windows system):

Open Git command line, enter the following command:

git config --global user.name "fill in your user name" # configure personal user name

git config --global user.email fill in their e-mail address mailbox number #

Git commands to view the configuration information:

git config --list # View configuration information

Find this file can also be seen:

Reminder: First, before using the following command Git to cd into the folder under the file you want to manage, and then use

Git basic commands:

git init # initialize a git project

git status # to view the current status of the file git

git add file name # tell git, a file management (to track a file)

git add. (dot) # add all the files in the current directory

git commit -m "comment" submitted version #

The detailed operation information is as follows:

Guess you like

Origin www.cnblogs.com/xiamaojjie/p/11595428.html