想我會在主分支使用這三個文件使用git兩個分支
MASTER::
index.php
<b>hello</b>
test.php
img.jpeg
現在我師父
NewBranch創建一個分支
index.php
<b>hello</b>
test.php
img.jpeg
現在我將編輯主index.php文件,我將新增兩行代碼掌握分支
MASTER:
index.php
<b>hello</b>
<a>test</a>
<p>good</p>
,我會在NewBranch
改變一些代碼NewBranch:
index.php
<b>hello</b>
<div>this is new branch line</div>
我想更新NewBranch所以我會對新科我自己編輯的線條,並更新線路上主科
NewBranch:(應該是這樣的,如下)
index.php
<b>hello</b>
<div>this is new branch line</div>
<a>test</a>
<p>good</p>
我怎樣才能做到這一點?我使用了netbeans Pull和Fetch,但沒有奏效。我也不想使用git submodule(因爲我沒有單獨的文件夾)
所以,你想合併你的主分支到你的新分支,同時保持主分支的原樣? – Grice 2014-10-17 13:43:26
是的,我打算合併兩個分支,但是當我使用netbeans pull(合併)時,它顯示我>需要合併提交以使當前分支與orogon/master同步 是否要將當前分支與起源/主人還是將它重新映射到起源/主人? 合併重新取消 – Ata 2014-10-17 13:59:36
當我點擊合併時,它不合並新行 – Ata 2014-10-17 13:59:58