linux雜談筆記之 版本管理工具svn&git

1向2飛發表於2017-04-27


1、svn 
 checkout
svn checkout http://120.132.69.218/svn/bicaijia-appweb-service/trunk/bicaijia-appweb_2/ ./webserver
svn log -l 2
 update
$ svn update .
 commit
$ svn commit -m "pom.xml file modify"
 delete
  $ svn delete pom.xml ;svn commit -m "delete pom.xml"
 copy branch

 merge
$ svn merge  http://120.132.69.218/svn/test/branches/webserver_v4.0.1_20170426
$svn commit -m "Merge "
 resolved
svn resolved -R 
 lock unlock
svn lock pom.xml -m "lock"
svn unlock --force pom.xml
 mkdir
$ svn mkdir -m "Create dir" http://120.132.69.218/svn/test/trunk/webserver/shy
 log
svn log -l -r --stop-on-copy
 回退
$ svn merge -r head:24 http://120.132.69.218/svn/test/trunk/webserver
$ svn commit
 檔案忽略
2、git
 init
git init
 clone
git clone https://username:password@ip
 push
git push origin develop:develop
 pull
 remote
 commit
 rm
 branch
 checkout
 tag
 log
 回退
 檔案忽略
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23890223/viewspace-2138083/,如需轉載,請註明出處,否則將追究法律責任。

相關文章