git和SVN类似

来源:互联网 发布:mac os yosemite 编辑:程序博客网 时间:2024/06/05 06:16

git:版本控制管理

1.我们可以在本地建立一个git管理:

git init 目录

2.首先像SVN一样提交一个新的目录:

git add 添加的目录

git commit 添加的目录 -m “注释”

3.现在查看修改目录的内容然后可以使用:

git diff 目录或者文件。

4.打patch文件也就是用他啦:

git diff > xxx.patch

SVN有的命令他基本有:log,checkout,status,rm等

man git

参考http://www.cnblogs.com/1-2-3/archive/2010/07/18/git-commands.html

0 0