2015-03-02 39 views
0

我有一個Git倉庫結構爲PIC顯示:開關的Git分支在開發服務器

enter image description here

正如你可以看到有一個development分支,這就是我利用在開發服務器之一。

我們正在努力(我和他們)在新的功能,使開發人員工作在unificacion分支和我繼續development發展,爲了在「穩定」的發展我已經創建merge-all包含development之間的合併不會搞亂的東西和unificacion。那麼,我需要在開發服務器中從development切換到merge-all,我該怎麼做?

我有這個內容在.git/config文件,但我不是那麼肯定碰那裏。

[core] 
     repositoryformatversion = 0 
     filemode = true 
     bare = false 
     logallrefupdates = true 
[remote "origin"] 
     fetch = +refs/heads/*:refs/remotes/origin/* 
     url = [email protected]:iosev/sis-php-source.git 
[branch "master"] 
     remote = origin 
     merge = refs/heads/master 

可以給我一些提示嗎?我看了一些文檔(thisthis等等),但目前尚不清楚在所有我

+0

'git的結帳合併,all' 另外我建議閱讀有關Gitflow分支模型來簡化您的工作流程:http://nvie.com/posts/a-successful-git-branching-model/ – alan 2015-03-02 17:00:05

回答

1
Switching between branches use 
    git checkout merge-all 

Read below all you need to know about branching and merging 
    http://git-scm.com/book/es/v2/Git-Branching-Basic-Branching-and-Merging