I have 2 branches viz. dev
and current
I am currently working on current
which is created from dev
.
Now, I made some changed to few files which included deletion of one file from the file system. I did the following:
- Remove from File System
git commit -a -m "File deleted"
git push origin current
Now on my git server (Bit Bucket), when I try to merge these branches, it gives me Conflict: Deleted in source but modified in destination
error. I don't need the file and simply want it to be deleted.
I even tried
git rm <file path>
git commit -a -m "File deleted"
git push origin current
Even this did not work. What am I missing?