July 2018
Intermediate to advanced
354 pages
10h 57m
English
We start by creating a local branch and then make two commits by performing the following steps; these are the commits that we want to rebase onto another branch:
$ git checkout -b rebaseExample --track origin/stable-3.1 Branch rebaseExample set up to track remote branch stable-3.1 from origin. Switched to a new branch 'rebaseExample'
$ echo "My Fishtank
Gravel, water, plants
Fish, pump, skeleton" > fishtank.txt
$ git add fishtank.txt
$ git commit -m "My brand new fishtank"
[rebaseExample 4b2c2ec] My brand new fishtank
1 file changed, 4 insertions(+)
create mode 100644 fishtank.txt
$ echo "mosquitos" ...Read now
Unlock full access