I created branch temp from master. Temp has 620 commits added to it. When i rebase try to merge temp branch into master using rebase. I do not see all commits.
This is what i am doing
git checkout master
git pull --rebase origin master
git checkout temp
git rebase -s recursive -X ours master
git checkout master
git rebase temp
git push origin master
Add automatic rebase to your global .gitconfig
git config --global branch.master.rebase true
git config --global branch.autosetuprebase=always
From the temp branch, you can type :
git checkout temp
git pull
git rebase master
At this point, Everything from temp branch is rebased on master branch. You need to merge temp with master
git checkout master
git merge temp
git commit -am "Everything is ok !"
git push
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.