I forked repo vanilla
via github
interface to vanilla_copy
,
after that I do: git clone vanilla_copy
, after some time I do
git pull
and get one new commit feature A
, and my history now looks like
Merge remote-tracking branch 'upstream/master'
feature A
after I commit something my self it become:
feature created by me
Merge remote-tracking branch 'upstream/master'
feature A
At now I want to create pull request
to vanilla
,
is it normal that my commit
feature created by me
have parrent that not exists invanilla
repo?How I should use
git
to not create thisauto merge commit
, usegit pull --rebase
or trackvanilla/master
viavanilla_copy/upstream
and usegit rebase branch
or some other mechanizm?How should I remove this existing merge commit? Should I remove commit via
git rebase -i
and thengit push -f
as described here: Delete Github commit history?