File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,12 @@ git branch --merged master
229
229
git checkout -
230
230
```
231
231
232
+
233
+ __ Alternatives:__
234
+ ``` sh
235
+ git checkout @{-1}
236
+ ```
237
+
232
238
## Remove branches that have already been merged with master
233
239
``` sh
234
240
git branch --merged master | grep -v ' ^\*' | xargs -n 1 git branch -d
Original file line number Diff line number Diff line change 34
34
"tip" : " git branch --merged master"
35
35
}, {
36
36
"title" : " Quickly switch to the previous branch" ,
37
- "tip" : " git checkout -"
37
+ "tip" : " git checkout -" ,
38
+ "alternatives" : [" git checkout @{-1}" ]
38
39
}, {
39
40
"title" : " Remove branches that have already been merged with master" ,
40
41
"tip" : " git branch --merged master | grep -v '^\\ *' | xargs -n 1 git branch -d" ,
458
459
}, {
459
460
"title" : " Backup untracked files." ,
460
461
"tip" : " git ls-files --others -i --exclude-standard | xargs zip untracked.zip"
461
- }]
462
+ }]
You can’t perform that action at this time.
0 commit comments