Neeraj Jain :
This question is similar to this one for Eclipse but with a different IDE.
How can I add my pre-existing Java to git in IntelliJ IDEA?
Current State:
- Existing Spring Boot Project initialized from start.spring.io
- Newly created GitHub repository
I could check out the new repository, copy the contents of my project to this directory and just push to master, but is there a simpler way within the IDE that avoids changing the location of the project?
Vinz243 :
- Go to
VCS > Import into Version Control > Create Git Repository
- Then go to
VCS > Git > Remotes
- Click the
+
button, leave origin as-is and paste the Git URL of your repository VCS > Git > Git Pull
thenVCS > Git > Git Push