Solved! Solved! Go to Solution.
So I realized I had to create a new project, and link it to my repository before doing any modification in it. Maybe I shall do the development in another project, and transfer it from time to time to the linked project, to avoid side effects.
Well but when linking the project to the repository just after creating the project, I get an error :
"rejected Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes before pushing again."
Well, my repository contains .gitattributes, and .gitignore, and that is all. And they are empty.
Is the solution to suppress the repository and create a new one ?
If there are incoming changes, why not propose me to pull them ?
This latest error is basically saying that you:
Because there's no common point of reference, Git can't figure out in an automated fashion what it is likely you want. So the error is suggesting that you pull the A-B-C history down, manually sort out what you want, and then push the result back up.
Or the faster way would possibly be to delete the repository on GitHub, create a new one with no contents, then push your local contents up to the new repository.
I hope that helps!