亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4879 | 回復(fù): 1
打印 上一主題 下一主題

這樣的項(xiàng)目需求,該用svn,git,還是hg? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-04-21 15:19 |只看該作者 |倒序?yàn)g覽
本帖最后由 yaoyansi 于 2011-04-21 15:21 編輯

Hi, 大家好
問題的背景是這樣的
1.A是一個(gè)github上的開源項(xiàng)目ReposA,使用git做代碼管理。
2.我現(xiàn)在要基于A開發(fā)一個(gè)項(xiàng)目B,
  a)B基于A的r0版本的代碼(記為Ar0)開發(fā),
  b)B需要改A的源代碼(A的這些被改動(dòng)的代碼文件記為AM)
  c)A現(xiàn)在也在不斷更新,假設(shè)今后某一天A的版本r1(代碼記為Ar1).B需要將Ar1(相對于Ar0的)增加的代碼,更新到B里。
  d)同時(shí)B還有我自己寫的新代碼文件(這些文件記為BM)
  e)暫時(shí)不能把B提交到A的代碼庫里,只能在本地建立我的代碼服務(wù)器S和代碼庫ReposB,也就是說AM和BM不能提交到ReposA里。
  f)可以肯定的是BM需要提交到ReposB里。
3.我對svn比較熟,搭建過svn服務(wù)器(win/linux);對于git,hg只用過客戶端(僅限于checkout),
4.開發(fā)環(huán)境是windows

問題如下:
1)該用svn,git,還是hg?如何管理?
2)AM應(yīng)該提交到哪里?
3)有沒有什么其他好的建議?

謝謝
------------------------------------------------------------
今天在學(xué)習(xí)git,使用TortoiseGit做了如下測試,同時(shí)也遇到一些問題:
測試步驟如下:
1.在本地d:\gittest\webserver\repos\建立代碼,建立分支branch0 (模擬ReposA)
2.在本地d:\gittest\localserver\repos\建立上述webserver的clone,
3.開發(fā)者user0 在d:\gittest\user0\repos\下clone localserver,在branch0做開發(fā),比如,增加一個(gè)文件user0_file0.txt
4.開發(fā)者user1 在d:\gittest\user1\repos\下clone localserver,在branch0做開發(fā),比如,增加一個(gè)文件user1_file0.txt

現(xiàn)在的問題是,如何把user0_file0.txt,user1_file0.txt 更新到d:\gittest\localserver\repos\下。
我在d:\gittest\user0\repos\下選擇“TortoiseGit”->push,點(diǎn)擊OK后會(huì)提示:
  1. git.exe push --progress  "origin" branch0 :branch0

  2. Counting objects: 3, done.
  3. Compressing objects: 100% (2/2)   
  4. Writing objects: 100% (2/2)   
  5. Writing objects: 100% (2/2), 243 bytes, done.
  6. remote: error: its current branch; however, this is not recommended unless youository to allow pushing intoch' configuration variable toinconsistentnch in a non-bare remote: remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.ep the default behaviour, set
  7. To D:\tmp\gittest\local_master\repos
  8. ! [remote rejected] branch0  -> branch0  (branch is currently checked out)
  9. error: failed to push some refs to 'D:\tmp\gittest\local_master2\repos'
復(fù)制代碼

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2011-04-21 19:10 |只看該作者
我嘗試了以下的方法,基本滿足我的需求了。但有些步驟覺得不妥,不知道有沒有什么隱患,請大家指點(diǎn)一下。
-----------------------------------------------------------------------------
1.如何保持d:\gittest\user0\和d:\gittest\user1\下代碼的同步:
    1) D:\tmp\gittest\local_master2\test0>git config --bool core.bare true
    2)d:\gittest\user0\repos\下有更改后,在目錄d:\gittest\user0\repos\點(diǎn)擊右鍵,選擇“Git Sync”,先點(diǎn)擊“Pull”,再點(diǎn)擊“Push”
    3)d:\gittest\user1\repos\下有更改后,在目錄d:\gittest\user1\repos\點(diǎn)擊右鍵,選擇“Git Sync”,先點(diǎn)擊“Pull”,再點(diǎn)擊“Push”

我覺得不妥之處和可能存在的問題:
1.雖然使得d:\gittest\user0\和d:\gittest\user1\下代碼的同步了,但是它們的更改(比如增減文件)在d:\gittest\localserver\repos\目錄下看不到(即使切換到相同的branch)
2.如果沒有步驟1的話,步驟2和3里的Push時(shí)會(huì)提示樓上的那個(gè)錯(cuò)誤:
   1. git.exe push --progress  "origin" branch0 :branch0
   2.
   3. Counting objects: 3, done.
   4. Compressing objects: 100% (2/2)   
   5. Writing objects: 100% (2/2)   
   6. Writing objects: 100% (2/2), 243 bytes, done.
   7. remote: error: its current branch; however, this is not recommended unless youository to allow pushing intoch' configuration variable toinconsistentnch in a non-bare remote: remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.ep the default behaviour, set
   8. To D:\tmp\gittest\local_master\repos
   9. ! [remote rejected] branch0  -> branch0  (branch is currently checked out)
  10. error: failed to push some refs to 'D:\tmp\gittest\local_master2\repos'
-----------------------------------------------------------------------------
2.如何保持d:\gittest\webserver\repos\和d:\gittest\localserver\repos\下代碼的同步:
    1) D:\tmp\gittest\local_master2\test0>git config --bool core.bare false
    2)在d:\gittest\localserver\repos\目錄下,點(diǎn)擊右鍵,選擇“Git Sync”,先點(diǎn)擊“Pull”,

我對反復(fù)設(shè)置core.bare的屬性,很擔(dān)憂。不知道有沒有什么隱患。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP