Ich habe eine Pull-Anfrage here, und wenn ich "git Rebase", fügte es Commits, die ich nicht in die Pull-Anfrage. Die entfernte branch Ich fusioniere ist vor all diesen Verpflichtungen, also verstehe ich nicht, warum sie in PR kommen. Irgendeine Idee, wie man das rückgängig machen oder wie man das in Zukunft verhindern kann?Doing Rebase fügt Replays Master-Zweig Commits in meine Pull-Anfrage
Hier ist, was ich tat
# Checkout local branch and apply changes
mkdir /home/yaroslavvb/tfimmediate_fresh
cd /home/yaroslavvb/tfimmediate_fresh
git clone https://github.com/yaroslavvb/tensorflow.git
cd tensorflow
git checkout tfimmediate_fresh
# do my modifications
git commit -m "Changes"
# Rebase against main branch
git remote add tfmain https://github.com/tensorflow/tensorflow.git
git fetch tfmain
git rebase tfmain/master
# fix conflicts
git add tensorflow/contrib/__init__.py
git rebase --continue
git pull
# fix conflicts again
git add tensorflow/contrib/__init__.py
git commit -m "Fix merge conflicts"
git push
git push -f
Danach, meine Pull-Request enthält Änderungen im Master-Zweig, die ich nicht