1
0
mirror of https://github.com/namibia/tips.git synced 2024-05-31 09:21:14 +00:00

More git tips

This commit is contained in:
Phalgun Guduthur 2015-07-15 13:05:57 +05:30
parent 68f6970979
commit 7c4096ffb2

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 -
```