File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ git branch -m [<old-branch-name>] <new-branch-name>
534
534
535
535
## Rebases 'feature' to 'master' and merges it in to master
536
536
``` sh
537
- git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1}
537
+ git rebase master feature && git checkout master && git merge -
538
538
```
539
539
540
540
## Archive the ` master ` branch
Original file line number Diff line number Diff line change 185
185
"alternatives" : [" git branch -m [<old-branch-name>] <new-branch-name>" ]
186
186
}, {
187
187
"title" : " Rebases 'feature' to 'master' and merges it in to master " ,
188
- "tip" : " git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1} "
188
+ "tip" : " git rebase master feature && git checkout master && git merge - "
189
189
}, {
190
190
"title" : " Archive the `master` branch" ,
191
191
"tip" : " git archive master --format=zip --output=master.zip"
You can’t perform that action at this time.
0 commit comments