176.2. Manipulating branches

简介:

git-branch - List, create, or delete branches

176.2.1. list branches

$ git-branch
* master
			

176.2.2. create branches

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

176.2.3. delete branches

$ git-branch -d mybranch
Deleted branch mybranch.

$ git-branch
* master
			

176.2.4. switch branch

$ git-branch
* master
  mybranch

$ git-checkout mybranch
Switched to branch "mybranch"

$ git-branch
  master
* mybranch
			

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

目录
相关文章
|
3月前
|
Python
Calculating Dates
Calculating Dates
29 1
|
6月前
|
SQL 存储 安全
Vulnerability
【7月更文挑战第2天】
81 1
|
8月前
|
前端开发 JavaScript 算法
shouldComponentUpdate 是做什么的?
shouldComponentUpdate 是做什么的?
199 0
AtCoderABC257E - Addition and Multiplication
AtCoderABC257E - Addition and Multiplication
87 0
A. Calculating Function
A. Calculating Function
53 0
Calculating Function
Calculating Function
99 0
Calculating Function
|
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.
2664 0
What Is ElectronJS and Why Should You Use It?