Let's get to the point:
How to upload a local project to Code Cloud/Github?
Requirements:
1. Code cloud/Github built git project
2. IDEA editor
3. Local Projects
Step 1: Create a remote project
Step 2: Copy the remote project address Note: The code cloud official has given the upload project method here , but it is in the form of the command line, we choose a simpler method.
Step 3: Create a local project, click VCS, and follow the instructions in the figure to create a Git repository for the project.
Step 4: Select the root directory of this project as the repository.
Step 5: Select the project name to add the project to the buffer, and then commit to the local warehouse.
Here is a diagram of git's add and commit to help you understand why a new project needs to be added first and then committed:
Step 6: After clicking Commit Directory, fill in Commit Message in the pop-up box, and then select Commit and Push.
Step 7: Click "Define remote" in the pop-up Push Commits dialog box, and fill in the remote project address copied in step 2.
Step 8: Click push.
Step 9: View Version Control-->log
Step 10: Upload Successful!