心得:跟 Gitlab 相比,Github 方便多了。
Github 指令
|
|
大致上就是這樣子
更新 pull request branch
|
|
Gitlab 指令
出處:http://doc.gitlab.com/ce/workflow/merge_requests.html
打開 .git/config
123[remote "origin"]url = https://gitlab.com/gitlab-org/gitlab-ce.gitfetch = +refs/heads/*:refs/remotes/origin/*加入
fetch = +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*
1234[remote "origin"]url = https://gitlab.com/gitlab-org/gitlab-ce.gitfetch = +refs/heads/*:refs/remotes/origin/*fetch = +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*git fetch origin
git checkout <branchname>