ubuntu svn 常用命令

1、svn

svn update 更新

新增文件或文件夹并提交
svn add "sss" test.py testw.py
svn add "dir" dir_path
svn commit -m "提交增加" test.py testw.py
svn commit -m "提交增加" dir_path

删除文件或文件夹并提交
svn delete "sss" test.py testw.py
svn delete "dir" dir_path
svn commit -m "提交删除" test.py testw.py
svn commit -m "提交删除" dir_path

checkout目录
svn co svn://192.168.0.172/repository --username xxx --password 123456
svn co svn://192.168.39.177/repository --username xxx --password 123456

svn st 查看文件夹中文件状态

看文件的更改
svn diff acs_detect.py

2、git

git pull 拉目录

提交:

git add

git commit -m  "scxecxw" 提交

git push 最终提交到版本库

猜你喜欢

转载自www.cnblogs.com/llfctt/p/10123455.html