I am using bit bucket for version controlling.I have repository x,which contains two branches 1) master and 2) sub_branch.
I want to delete some file from master branch while merging sub_branch into master branch.
Though I have found the way to delete file : How can I delete a file from git repo?
I have tried with following command:
git checkout master
git rm <my_file>
git commit -m 'delete file'
git merge sub_branch
unfortunately this dosen't work.
My question is I want to delete some file from a branch before I merge other branch with it.
Thanks a lot. please put your comments if you didn't get anything.