話說,
用git 當svn 的local branch有點大材小用,
不過原因如下:
一、這樣子就不需要把code branch出去改,
修改的地方用git commit(可以一直commit到git),
等到function work時,
再用svn commit所有的修改,
之後就可以移掉git了
二、真正的原因是有些server我沒有git-svn的權限,
沒辦法用git-svn直接clone svn的code,
不然用git-svn應該才是正解
flow:
1. cd /path_to_work/ #進入工作目錄
2. git init #init git
3. vim .gitignore #設 .gitignore
例:
.*
4. git add -A # add all files exclude .gitignore
5. git commit # commit files to git
...
6. svn ci # commit files to svn
7. rm -rf .git/ # remove git
延伸閱讀:
git
百岳(1-37) | 百岳(38-48) | 中級山 | 單車 | 西藏 | 留言版
星期三, 8月 08, 2012
星期五, 6月 03, 2011
svn mismatch
用過svn 1.6的work_copy,
整份copy拿到svn 1.4或是svn 1.5上,
會有work_copy上的問題,
解法請看下面的link
延伸閱讀:
I got an error saying "This client is too old to work with working copy '...' ". How can I fix it without upgrading Subversion?
整份copy拿到svn 1.4或是svn 1.5上,
會有work_copy上的問題,
解法請看下面的link
延伸閱讀:
I got an error saying "This client is too old to work with working copy '...' ". How can I fix it without upgrading Subversion?
訂閱:
文章 (Atom)


