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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
5月前
|
前端开发 JavaScript 算法
shouldComponentUpdate 是做什么的?
shouldComponentUpdate 是做什么的?
57 0
AtCoderABC257E - Addition and Multiplication
AtCoderABC257E - Addition and Multiplication
52 0
A. Calculating Function
A. Calculating Function
36 0
Calculating Function
Calculating Function
60 0
Calculating Function
|
算法
HDOJ 1202 The calculation of GPA
HDOJ 1202 The calculation of GPA
76 0
|
Go
HDOJ 1012 u Calculate e
HDOJ 1012 u Calculate e
92 0
HDOJ 1012 u Calculate e
|
JavaScript 安全 前端开发
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.
2620 0
What Is ElectronJS and Why Should You Use It?