Splendid ! #22645
-
Magnificent ! After a few days or development I decided to create a repository to be very sure not to lose anything. As soon as I clicked on Push, everything has instantly disappeared. I presume this is not the aim of Git. Is there an operational mode somewhere, other than the one that led me there ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I think I should reformulate my question (I did not see any “Edit” button, is there ?) Did anyone already succeed in pushing an existing project into a Git repository, that was created afterwards ? |
Beta Was this translation helpful? Give feedback.
-
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 :
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 ? |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing this aspect of creating a repository. I was also planning to create one for my project LED video wall rental. I should better discuss it with some professional before taking this step. |
Beta Was this translation helpful? Give feedback.
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!