After Idea creates the project, the problem of submitting the project to the code cloud

1. Create a git repository: vcs->import int version control->Create git repository

2. Right-click on the project header->git->add

3. Right-click on the project header->git->commit director

4. Enter the commit director interface, click commit and push

5. There is a problem with push: Push to xxx/master was rejected

6. Solve the problem: Git-2.13.0-32-bit.exe (install first), in the project directory, right-click and select git bash here

7. Add the following command: git pull origin master --allow-unrelated-histories

8. Re-push in idea

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324657894&siteId=291194637