Re: [問題] xcode使用svn如何update file

看板MacDev作者 (o(‧"‧)o)時間12年前 (2013/05/09 13:42), 編輯推噓6(6010)
留言16則, 5人參與, 最新討論串2/2 (看更多)
自己回覆一下解決方式提供需要的人參考: 若真的要用xcode來使用svn 1. 先用terminal 下指令 svn list server端svn的位置 2. 進入xcode-> window -> organizer-> Repositories ★若裡面已有加入的這個位置,請先刪掉重新點左下角 + -> Add Repository 3. 先checkout 下載你的檔案 若server端無檔案 就import你要的專案即可上傳。 4. 打開checkout的專案 修改 code 存檔。 5. File -> Source Control -> commit 即可連結上這個svn server位置 上傳定版的檔。 若要其他功能就麻煩自己研究我還沒用到XDa 有錯請指正~也是查到試出來的~ 謝謝 --- 提供網路找到的別的方式 但我沒試過,因為我找不到svnserve.conf在哪 == ==" 使用命令行修改代碼目錄下conf子目錄下的svnserve.conf配置文件 把anon-access=read改成anon-access=none. 如下: [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none auth-access = write -- reference: http://www.cocoachina.com/bbs/read.php?tid=81849&keyword=SVN ※ 引述《bruce620 (o(‧"‧)o)》之銘言: 請問各位前輩 我在xcode使用svn出了一個問題, 我在Organizer 新增了一個 add Repository... 可以順利連上 找到server端的檔案後 點選 check out得到我要的檔案。 然後我修改了這個專案檔後要上傳更新, 我選擇了 File -> source Control ->Commit 但xcode總會跳出一個視窗說 The operation could not be performed because no valid working copies were found. 內容寫 please verify that your files are under source control and try again. 按了ok就沒了。 請問xcode使用svn要上載更新檔案該如何做才是正確的呢? 我有查到之前有版友說 直接叫出Organizer Repositories再選專案去Commit or 但是我開了Repositories沒有看見我剛才checkout的專案,只有看到有連上svn的那個 folder 謝謝各位。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 139.223.23.125

05/08 18:30,
試試使用terminal的svn commit的指令
05/08 18:30

05/08 19:16,
我有試過terminal可以使用, 只是好奇xcode裡到底是怎
05/08 19:16

05/08 19:16,
去操作使用. _ . 謝謝
05/08 19:16

05/08 19:30,
基本上,我是不相信Xcode的source control功能
05/08 19:30

05/08 21:02,
Xcode 的 Git integration 還不錯, SVN 就...
05/08 21:02

05/09 00:46,
Xcode用git有時候會異常結束Orz
05/09 00:46

05/09 09:51,
Xcode 的 source control 讓我失去對 git/svn 的信心
05/09 09:51

05/09 09:51,
後來改用 terminal/sourcetree 後才回復
05/09 09:51
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 139.223.23.125 ※ 編輯: bruce620 來自: 139.223.23.125 (05/09 13:43) ※ 編輯: bruce620 來自: 139.223.23.125 (05/09 13:45)

05/12 22:05, , 1F
git各方面來講都比單線的svn好上許多 有啥特別理由一定
05/12 22:05, 1F

05/12 22:05, , 2F
得用svn的嗎?svn checklist也有方法可以轉成git
05/12 22:05, 2F

05/12 22:59, , 3F
有吧?例如公司是使用 svn..
05/12 22:59, 3F

05/13 00:12, , 4F
其實已經不常見了... 現在看到比較多的應該是CVS系的
05/13 00:12, 4F

05/13 00:12, , 5F
Perforce 除此以外說真的還滿少....看到CVS/SVN (抓頭
05/13 00:12, 5F

05/13 08:22, , 6F
台灣公司還一堆用 CVS/SVN 的
05/13 08:22, 6F

05/13 08:25, , 7F
SVN很多啊!! 而且SVN也不是單線,也是可以branch的
05/13 08:25, 7F

05/13 08:26, , 8F
SVN相較GIT也比單純好學
05/13 08:26, 8F

05/13 08:49, , 9F
能用SVN是幸福的 (看著我們辦公室的TFS...)
05/13 08:49, 9F

05/13 13:47, , 10F
SVN Branch不是差別式 開個branch改動超級大
05/13 13:47, 10F

05/13 13:47, , 11F
不過的確啦,剛剛問了一下幾個業界朋友 的確SVN還是不少
05/13 13:47, 11F

05/13 13:47, , 12F
業界的人在用... CVS喔 就真的沒聽過了 Perforce不算的
05/13 13:47, 12F

05/13 13:48, , 13F
話....
05/13 13:48, 13F

05/13 14:29, , 14F
SVN的branch是用svn copy.. 這個實作上是"cheap copies"
05/13 14:29, 14F

05/13 14:29, , 15F
有點類似linux的hard links, 所以沒有所謂超級大的說法
05/13 14:29, 15F

05/13 14:30, , 16F
05/13 14:30, 16F
文章代碼(AID): #1HYpTIeW (MacDev)
文章代碼(AID): #1HYpTIeW (MacDev)