mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-18 05:31:16 +02:00
Merged Branches
This commit is contained in:
16
README.md
16
README.md
@@ -219,3 +219,19 @@ Where `query` is the term you want to search, this then finds the last one and g
|
|||||||

|

|
||||||
|
|
||||||
NOTE: Press `q` to quit.
|
NOTE: Press `q` to quit.
|
||||||
|
|
||||||
|
## Merged Branches
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ git branch --merged
|
||||||
|
```
|
||||||
|
|
||||||
|
Will give you a list of all branches that have been merged into your current branch.
|
||||||
|
|
||||||
|
Conversely:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ git branch --no-merged
|
||||||
|
```
|
||||||
|
|
||||||
|
Will give you a list of branches that have not been merged into your current branch.
|
||||||
|
Reference in New Issue
Block a user