5.2. Manipulating branches

简介:

git-branch - List, create, or delete branches

5.2.1. list branches

$ git-branch
* master
			

5.2.2. create branches

$ git-branch mybranch
$ git-branch
* master
  mybranch
			

5.2.3. delete branches

$ git-branch -d mybranch
Deleted branch mybranch.

$ git-branch
* master
			

5.2.4. switch branch

$ git-branch
* master
  mybranch

$ git-checkout mybranch
Switched to branch "mybranch"

$ git-branch
  master
* mybranch
			

5.2.5. git-show-branch - Show branches and their commits

$ git-show-branch
! [master] add a new file
 * [mybranch] add a new file
--
+* [master] add a new file





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

相关文章
|
6月前
|
Calculating Dates
Calculating Dates
46 1
[UIM]论文解读:subword Regularization: Multiple Subword Candidates
[UIM]论文解读:subword Regularization: Multiple Subword Candidates
85 0
shouldComponentUpdate 是做什么的?
shouldComponentUpdate 是做什么的?
243 0
AtCoderABC257E - Addition and Multiplication
AtCoderABC257E - Addition and Multiplication
130 0
A. Calculating Function
A. Calculating Function
91 0
Calculating Function
Calculating Function
115 0
Calculating Function
HDOJ 1202 The calculation of GPA
HDOJ 1202 The calculation of GPA
146 0
What Is ElectronJS and Why Should You Use It?
In this three-part tutorial, we will explore how to create a fully functional invoice application using ElectronJS and ApsaraDB for MongoDB.
2785 0
What Is ElectronJS and Why Should You Use It?
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等