mirror of https://github.com/namibia/tips.git
Merge pull request #62 from exalted/patch-1
Branches merged into master without checkout first
This commit is contained in:
commit
d3b180632b
|
@ -166,7 +166,7 @@ git diff HEAD
|
||||||
|
|
||||||
## List all branches that are already merged into master
|
## List all branches that are already merged into master
|
||||||
```sh
|
```sh
|
||||||
git checkout master && git branch --merged
|
git branch --merged master
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quickly switch to the previous branch
|
## Quickly switch to the previous branch
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
"tip": "git diff HEAD"
|
"tip": "git diff HEAD"
|
||||||
}, {
|
}, {
|
||||||
"title": "List all branches that are already merged into master",
|
"title": "List all branches that are already merged into master",
|
||||||
"tip": "git checkout master && git branch --merged"
|
"tip": "git branch --merged master"
|
||||||
}, {
|
}, {
|
||||||
"title": "Quickly switch to the previous branch",
|
"title": "Quickly switch to the previous branch",
|
||||||
"tip": "git checkout -"
|
"tip": "git checkout -"
|
||||||
|
|
Loading…
Reference in New Issue