Using the remote git repository in idea is not as convenient as in eclipse, but it can be completed with the official git GUI tool.
1. How to upload the local git repository of a local project to a remote git Repository
After adding git to the project in idea, use git GUI to open the GIT repository of the project:
Then add a remote Repository:
In the middle, you need to confirm the remote repository password:
After the remote repository is added, upload the workspace content to the remote Repository:
Authentication is still required:
2. Clone the remote git repository to the local git repository, and then the checkout project from the cloned local git Repository
Use the clone function of git Gui:
After cloning the remote repository to the local machine, use idea's "check out from Version Control" to checkout the content in the local git repository.
During checkout, enter the path of the cloned local git repository in the VCs repository URL: