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
229229git checkout -
230230```
231231
232+
233+ __ Alternatives:__
234+ ``` sh
235+ git checkout @{-1}
236+ ```
237+
232238## Remove branches that have already been merged with master
233239``` sh
234240git branch --merged master | grep -v ' ^\*' | xargs -n 1 git branch -d
Original file line number Diff line number Diff line change 3434 "tip" : " git branch --merged master"
3535}, {
3636 "title" : " Quickly switch to the previous branch" ,
37- "tip" : " git checkout -"
37+ "tip" : " git checkout -" ,
38+ "alternatives" : [" git checkout @{-1}" ]
3839}, {
3940 "title" : " Remove branches that have already been merged with master" ,
4041 "tip" : " git branch --merged master | grep -v '^\\ *' | xargs -n 1 git branch -d" ,
458459}, {
459460 "title" : " Backup untracked files." ,
460461 "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