There have been many questions on SOF like these:
but my problem seems a little different and I couldn't get out of it.
Here's what I did:
- I saw that master protected to make any pushes on that
- so I made a new branch
git checkout -b module1
wrote somethinggit add --all
git commit -m "____"
git push origin module1
raise a pull request - I made another branch
git checkout -b module2
wrote something
git add --all
git commit -m "____"
git push origin module2
raise a pull request
Now second pull request went with commits of previous module also. TO rectify this I tried:
- after pushing in last step to branch
- I went to master git checkout master
then
- git merge module2
Now if I raise a Pull Request it is still showing commits of module1 in Pull Request.
What can I do to fix this and take care with future branches?