Commit 0286eb3
committed
Add change a branch base tips
Based on : https://stackoverflow.com/questions/10853935/change-branch-base
Tested on `git version 2.11.0 (Apple Git-81)` :
```bash-4.3$ git --version
git version 2.11.0 (Apple Git-81)
bash-4.3$ git checkout -b test-rebase-onto
Switched to a new branch 'test-rebase-onto'
bash-4.3$ touch "test-to-rebase"
bash-4.3$ git add test-to-rebase
bash-4.3$ git commit -m "Commit to rebase"
[test-rebase-onto 11d1cdd] Commit to rebase
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test-to-rebase
bash-4.3$ git log
bash-4.3$ git rebase --onto master dev
Applying: Commit to rebase
bash-4.3$ git log```1 parent c358de0 commit 0286eb3
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
1167 | 1168 | | |
1168 | 1169 | | |
1169 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1170 | 1176 | | |
1171 | 1177 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
496 | 499 | | |
| 500 | + | |
497 | 501 | | |
0 commit comments