I have been in similiar situations really often during my Bachelors (always fighting with different software plaftorms for sharing code - at the beginning of Bachelors, though - as we were not so advanced).
I was (like every other student) then introduced with the GIT and this is the thing that I would highly recommend!
If you, however, happen to have some merging problems, then just try using one of the following commands:
git fetch origin
git reset --hard origin/master
Good luck!