Using IntelliJ IDEA upload local project to GitHub

IDEA and upload your own use Git source code compiled spring up to their GitHub

1. First, enter their GitHub page, create a repository

 

 

 2. Open the project in IDEA, create a local warehouse

 

 

 

 3. Right project, add code to Git

 

 4. Submit the code to Git

 

 5. Remote start submitting projects to GitHub

  Into the project directory, execute the command: git remote add origin https://github.com/LoveWK/mySpring.git

 

  If you encounter this error remote origin already exists, execute the following command: git remote rm origin

 

 

   Re-run: git remote add origin https://github.com/LoveWK/mySpring.git

 

   And then execute the command: git push -u origin master

 

   After waiting for upload project is successful, we can go on their own projects to view the GitHub

 

Guess you like

Origin www.cnblogs.com/wk-missQ1/p/12524762.html