File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -225,13 +225,13 @@ git checkout -
225
225
226
226
## Remove branches that have already been merged with master
227
227
``` sh
228
- git branch --merged master | grep -v ' ^\*' | xargs -n 1 git branch -d
228
+ git branch --merged master | grep -v ' ^\*' | xargs -d ' \n ' - n 1 git branch -d
229
229
```
230
230
231
231
232
232
__ Alternatives:__
233
233
``` sh
234
- git branch --merged master | grep -v ' ^\*\| master' | xargs -n 1 git branch -d # will not delete master if master is not checked out
234
+ git branch --merged master | grep -v ' ^\*\| master' | xargs -d ' \n ' - n 1 git branch -d # will not delete master if master is not checked out
235
235
```
236
236
237
237
## List all branches and their upstreams, as well as last commit on branch
Original file line number Diff line number Diff line change 37
37
"tip" : " git checkout -"
38
38
}, {
39
39
"title" : " Remove branches that have already been merged with master" ,
40
- "tip" : " git branch --merged master | grep -v '^\\ *' | xargs -n 1 git branch -d" ,
41
- "alternatives" : [" git branch --merged master | grep -v '^\\ *\\ | master' | xargs -n 1 git branch -d # will not delete master if master is not checked out" ]
40
+ "tip" : " git branch --merged master | grep -v '^\\ *' | xargs -d ' \\ n' - n 1 git branch -d" ,
41
+ "alternatives" : [" git branch --merged master | grep -v '^\\ *\\ | master' | xargs -d ' \\ n' - n 1 git branch -d # will not delete master if master is not checked out" ]
42
42
}, {
43
43
"title" : " List all branches and their upstreams, as well as last commit on branch" ,
44
44
"tip" : " git branch -vv"
440
440
}, {
441
441
"title" : " Preformatted patch file." ,
442
442
"tip" : " git format-patch -M upstream..topic"
443
- }]
443
+ }]
You can’t perform that action at this time.
0 commit comments