Skip to content

Commit

Permalink
Merge pull request 521xueweihan#31 from claviering/master
Browse files Browse the repository at this point in the history
feature: 添加两个远程和本地关联的命令
  • Loading branch information
521xueweihan authored Apr 29, 2019
2 parents 33a01ff + 2d41e38 commit ecefdab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Git是一个 “分布式版本管理工具”,简单的理解版本管理工
* [关联远程分支](#关联远程分支)
* [列出所有远程分支](#列出所有远程分支)
* [列出本地和远程分支](#列出本地和远程分支)
* [查看远程分支和本地分支的对应关系](#查看远程分支和本地分支的对应关系)
* [远程删除了分支本地也想删除](#远程删除了分支本地也想删除)
* [创建并切换到本地分支](#创建并切换到本地分支)
* [从远程分支中创建并切换到本地分支](#从远程分支中创建并切换到本地分支)
* [删除本地分支](#删除本地分支)
Expand Down Expand Up @@ -209,6 +211,18 @@ git branch -r
git branch -a
```

## 查看远程分支和本地分支的对应关系

```sh
git remote show origin
```

## 远程删除了分支本地也想删除

```sh
git remote prune origin
```

## 创建并切换到本地分支
```sh
git checkout -b <branch-name>
Expand Down

0 comments on commit ecefdab

Please sign in to comment.