分支的作用 #6
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 44 minutes 23 seconds
Due Date
suneshone
44 minutes 23 seconds
Dependencies
No dependencies set.
Reference: suneshone/obscuredSubtitles#6
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
让我们来看一个简单的分支新建与分支合并的例子,实际工作中你可能会用到类似的工作流。 你将经历如下步骤:
正在此时,你突然接到一个电话说有个很严重的问题需要紧急修补。 你将按照如下方式来处理:
分支切换会改变你工作目录中的文件
git branch <branchname>
创建分支git branch -d <branchname>
删除分支git checkout <branchname>
切换分支创建新分支的同时切换过去,通常我们会在创建一个新分支后立即切换过去,这可以用
git checkout -b <newbranchname>
一条命令搞定。#7