1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-23 02:28:58 +00:00

Merge pull request #1 from phalgun/patch-1

More git tips
This commit is contained in:
hemanth.hm 2015-07-15 14:39:12 +05:30
commit 02d0ca47c9

View File

@ -22,3 +22,19 @@ git update-ref -d HEAD
```sh ```sh
git diff --name-only --diff-filter=U git diff --name-only --diff-filter=U
``` ```
# List all branches that are already merged into master
```sh
git checkout master
git branch --merged
```
# Quickly switch to the previous branch
```sh
git checkout -
```