I have two computers at home, one with Windows and one with Linux and I have one big repository called Work that I put on Git. But I work with this remote from both computers. I have created the repository initially on one and create the git repository (on bitbucket) from there. And I was able to make commit, push or pull. But I also make modifications from my second computer after I clone and git init the Work repository (but I do not make modifications on the same files), and when I tried to push it makes an error
error: failed to push some refs to '...'
hint: Updates were rejected because the tip of your current branch is behind
I think this is because I made modifications from the other computer but shouldn't it understand that the only modifications commited here should be merged with the current branch even if some other files have been modified in other subrepositories ?
I tried a pull but it doesn't work, and I tried a merge. Same. I am kind of lost for solutions. Can you help please ?