Four of our members are working on a Git branch called "Dev". I have completed some of my work and when trying to push it, it gives me an error because someone has already made a commit/push to "dev". It says to pull first and push, but when I did pull my modified data was lost. However, when I switched to using master branch, I recovered.
How I am going to push my changes to "dev" without removing changes from other developers as well?