I have pulled master
branch on GitHub and it's up to date.
Steps which I followed later:
- Pulled a branch
branch1
using commandgit pull remote branch1
- Pulled
master
again usinggit pull origin master
- Changed a file ( on
master
) git add filename.txt
git commit -m "committing filename.txt"
git push
But when I pushed it merged branch1
to the master
. How did this happen? As I had pulled master
again, I was expecting branch1
to be overwritten.
What did I miss here?