1,常用的版本控制工具
1,git
2,Subversion
3,Mercurial
2,在git项目所在的目录下,如果新建一个文件夹,git检测不到,新建文件或者新建子文件夹后再建文件才能被检测到。
3,git常用命令
3.1 git clone http://…
从网络端克隆项目到本地(在本地会得到关于该项目的文件夹)
3.2 git status
查看整个git项目目前的状态
3.3 git init file
开始一个git项目(生成一个文件夹)
3.4 git add
加入改变到git的预备状态
3.5 git commit
将预备状态commit
3.6 git log/git show
显示所有的commit
4,git笔记
4.1 用git add file1可以将file1文件的改动标记到staging index中(change 1),如果此时对file1文件进行了修改,再次用git add file1可以将file1文件的改动标记到staging index中(change 2),则此时staging index中的change 1和change 2会合二为一。
5,git不常用命令
5.1 git tag
Add tag to specific commits
5.2 git branch
Allows multiple lines of development
5.3 git checkout
switch between different tags and branches
5.4 git merge
combines changes on different branches
5.5 git commit --amend
Alter the most-recent commit
5.6 git revert
Revert a specific commit
5.7 git reset
erases commits