I'm fairly new to Git. I recently started a project in Java using IntelliJ, not realizing that I should have connected to Git/GitHub before writing code. I now want to connect the project to Git/GitHub, but with previous versions of the project committed (this is the part I'm having trouble with). I have access to the project history in IntelliJ, if that helps. How can this be done?
Asked
Active
Viewed 68 times
0
-
1Does this answer your question? [How do you make Git work with IntelliJ?](https://stackoverflow.com/questions/7671305/how-do-you-make-git-work-with-intellij) – testrDev Aug 01 '21 at 19:55
-
2So you're saying you didn't use any version control system and only have access to the "local history" feature in IDEA? I guess you should be able to export that to a git repository somehow. – Joachim Sauer Aug 01 '21 at 20:42
1 Answers
2
My full understanding is that you want to go back to the code when you first started your project. If my understanding is correct, you can check it out here. https://www.jetbrains.com/help/idea/local-history.html#restore-changes-from-local-history

justdoit
- 47
- 1
- 8