1. Locate your project folder, go after the right choice Git Bash Here, the operation of open git bad environment
2. configured to use the name and e-mail address of the person
Set the user name: git config - global user.name 'you go on github username registered';
Setting a user's mailbox: git config - global user.email 'registered when the mailbox';
3. Check whether success
Use git config --list
There are two ways to change the configuration
1. Direct Repeat command mailbox user name or covering.
2.C: \ Users \ Administrator Below find .gitconfig file open with an editor to make changes
After more than two configurations in general use, do not make changes without replacing human use
The basic work flow 4.git
1. Open the git command line program. Git init ------ implementation of the project folder to initialize an empty git repository
.git folder is hidden, I did not see the open
2. Run the git status git view files under the management of file status (managed or not)
· No branch master branch
no commits yet in the current project has not submitted any
untracked files are not git managed file
3. Perform git add to add the working directory git want to be managed files to the staging area
Red to green, indicating that the item is added to the staging area
4. submit files to the staging area git repository commit git commit -m
Submitted by a space behind the success -m submit written instructions (must)
5.git log records View Submitted
The only submit commit identity
5. revoked
Add a new test.html
Use git checkout test.html reduction
6. Delete
git rm --cached test.html
删除暂存区的文件,但是工作目录还是有这个文件,只是不被git管理了