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

目录
相关文章
|
3月前
|
Python
Calculating Dates
Calculating Dates
32 1
|
8月前
|
机器学习/深度学习 自然语言处理 算法
[UIM]论文解读:subword Regularization: Multiple Subword Candidates
[UIM]论文解读:subword Regularization: Multiple Subword Candidates
66 0
|
8月前
|
前端开发 JavaScript 算法
shouldComponentUpdate 是做什么的?
shouldComponentUpdate 是做什么的?
200 0
AtCoderABC257E - Addition and Multiplication
AtCoderABC257E - Addition and Multiplication
90 0
A. Calculating Function
A. Calculating Function
54 0
Calculating Function
Calculating Function
101 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.
2665 0
What Is ElectronJS and Why Should You Use It?

热门文章

最新文章