More git tips

This commit is contained in:
Phalgun Guduthur 2015-07-15 13:05:57 +05:30
parent 68f6970979
commit 7c4096ffb2
1 changed files with 16 additions and 0 deletions

View File

@ -22,3 +22,19 @@ git update-ref -d HEAD
```sh
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 -
```