git version control and other tools of comparison:
Git only interested in whether the whole data file changes, while most other systems only concern specific differences in file contents.
git of three states:
Has been submitted (committed), it has been modified (modified) and have been staging (staged) . Submitted indicates that the file has been safely stored in the local database; modified expressed modified a file, but not yet submitted to the depositary; has been staging represents the modified files in the next time you submit the list to be saved . Thus when we see the Git project management, file transfer of three work areas: local data Git directory, the working directory, and the staging area.
- If git directory holds the specific version of the file, submitted to belong to the state;
- If you have been modified and placed in the staging area, it belongs to have the temporary status;
- If since the last time out, but has not been modified into the staging area, it is modified state.
Git server to build:
General to set up git server on a Linux system,
1. git tar compressed packet to the root /
2. Extract the tar -zxvf
3. Installation of dependencies
4. Enter the git directory cd ./git-*
5. Installation performed:
6. Create git users:
Adding a Linux user, the user name git users:
Set git user's password
Switch to the user git
7. initialization Warehouse:
The beginning of an empty Git repository in /home/git/taotao.git/