We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature3 branch derived from Feature2, rebase Feature3 before merging
Feature2
Feature3
test 15-1
test15
git rebase Feature2
git log
git reflog
git checkout Feature2 touch test15 # edit test15 git add test15 git commit -m "testcase15: startpoint (create file test15)"
git checkout Feature3 git merge Feature2
git checkout Feature2 # edit test15 git add test15 git commit -m "Feature2: edit the file test15"
test15-1
git checkout Feature3 touch test15-1 # edit test15-1 git add test15-1 git commit -m "Feature3: created, edited the file test15-1"
Now, preparation work is done, and the project log becomes (diverge appears):
git checkout Feature3 git rebase Feature2
Feature3 branch is moved, rebase is done successfully. However, no commit about rebase is created.
rebase
git checkout Feature2 git merge Feature3
A fast-forward merge is done, no merge commit is created.
git checkout Feature2 git branch git log git reflog
git checkout Feature3 git branch git log git reflog
As we can see,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature3 branch derived from Feature2, rebase Feature3 before merging
Scenario abstract
Feature2
andFeature3
),Feature3
was derived fromFeature2
;Feature3
branch was created,Feature3
createdtest 15-1
, commitFeature2
re-edittest15
, commitFeature3
back toFeature2
Feature3
branch --git rebase Feature2
Results:
git log
git reflog
git log
git reflog
Data could be explored:
git log
git reflog
Detailed steps:
Step0: prep
test15
onFeature2
branchFeature2
andFeature3
Feature2
branchFor example, re-edit test file
test15
Feature3
branchFor example, create and edit test file
test15-1
Now, preparation work is done, and the project log becomes (diverge appears):
![screen shot 2017-10-16 at 12 51 39 am](https://user-images.githubusercontent.com/16771854/31600686-358ae134-b20c-11e7-9e3a-dcb5f779bae7.png)
Step1: Rebase
Feature3
branchFeature3
branch is moved,rebase
is done successfully. However, no commit aboutrebase
is created.Step2: Merge
Feature3
back toFeature2
A fast-forward merge is done, no merge commit is created.
Step3: check
git log
andgit reflog
Feature2
branch:Feature3
branch:As we can see,
rebase
process is done with no extra visual commitgit log
git reflog
git log
git reflog
The text was updated successfully, but these errors were encountered: