初探svn

作者: BIDIU猿 | 来源:发表于2015-02-19 00:22 被阅读68次
[root@localhost oakseed123]# svn add 1/mysite/
A         1/mysite
A         1/mysite/views.py
A         1/mysite/__init__.py
A         1/mysite/settings.py
A         1/mysite/urls.py
A         1/mysite/wsgi.py
[root@localhost oakseed123]# svn commit -m "add 1/mysite/"
Adding         1/mysite
Adding         1/mysite/__init__.py
Adding         1/mysite/settings.py
Adding         1/mysite/urls.py
Adding         1/mysite/views.py
Adding         1/mysite/wsgi.py
Transmitting file data .....
Committed revision 5.
[root@localhost oakseed123]# ls
1
[root@localhost oakseed123]# cd 1
[root@localhost 1]# ls
config.yaml  index.wsgi  manage.py  mysite
[root@localhost 1]# svn commit -m "add manage.py"
[root@localhost 1]# svn add manage.py
A         manage.py
[root@localhost 1]# svn commit -m "ad manage.py"
Adding         manage.py
Transmitting file data .
Committed revision 6.
[root@localhost 1]# ls
config.yaml  index.wsgi  manage.py  mysite
[root@localhost 1]# vim index.wsgi 

[3]+  Stopped                 vim index.wsgi
[root@localhost 1]# rm index.wsgi 
rm: remove regular file ‘index.wsgi’? yes
[root@localhost 1]# vim index.wsgi
[root@localhost 1]# svn add index.wsgi 
svn: warning: W150002: '/workspace/svn/oakseed123/1/index.wsgi' is already under version control
svn: E200009: Could not add all targets because some targets are already versioned
svn: E200009: Illegal target for the requested operation
[root@localhost 1]# svn commit -m "edit index.wsgi"
Sending        index.wsgi
Transmitting file data .
Committed revision 7.

相关文章

网友评论

      本文标题:初探svn

      本文链接:https://www.haomeiwen.com/subject/xiqjxttx.html