I have a repo on gitlab with my project. I first commit and push this project on windows. After I create a VM on ubuntu and I copy paste my project folder on it. I continue my project on ubuntu and I did commit (without push). I didn'use anymore my windows project. Now when I want to push the project (ubuntu) I have error. I think I have conflict and merging problem.
How can I push
my project on the repo. I try to pull
, fetch
but nothing.
The error is :
! [rejected] master -> master (non-fast-forward)
impossible to push references to 'repo'
tip: The updates were rejected because the head of the current branch is behind its remote peer. Integrate remote changes (eg 'git pull ...') before pushing again.
After that when I do a git pull origin master
I have a lot of conflicts with many files.
Can you help me?