git gui分支机构管理 [英] git gui branch management
问题描述
我是Windows上没有经验的Git用户.我正在使用Git Gui.我对分支机构管理感兴趣.
Hi I am an inexperienced Git user on Windows. I am using Git Gui. I am interested in Branch Management.
我的仓库中有一个名为"leafy"的分支,我该如何将该分支检出到我的本地计算机,然后他们从master那里选择一个提交到叶茂盛的提交中?
My repo has a branch called 'leafy', how do I check this branch out to my local machine, and them cherry pick a commit from master into leafy?
非常感谢
-MB
推荐答案
感谢您的答复,但我说我正在使用Git Gui
Thanks for replies, but I said I am using Git Gui
要签出新创建的分支(存在于服务器中,而不是本地存在),这是一个两步过程:
To checkout newly created branch (exists on server, not locally), it's a 2 step process:
-
Git Gui->分支->签出->跟踪分支->选择分支
Git Gui -> Branch -> Check Out -> Tracking Branch -> Choose Branch
分支->创建->名称=与您选择的跟踪分支相同的名称->选择此分离的结帐
Branch -> Create -> Name = same name as tracking branch you chose -> Choose This Detached Checkout
您现在正在使用分支.
另一种有用且显而易见的事情->切换到另一个分支->分支->签出->本地分支.....
Another useful and obvious thing -> to switch to another branch -> Branch -> Check Out -> Local Branch .....
这篇关于git gui分支机构管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!