1. Prepare
- Install git
- Installation IDEA
- Ready GitHub account
2. Establish a simple java project
We have to do is to publish the project to GitHub account
3. to create a warehouse GItHub above
Then we cloned the path, behind the need.
4. Configuration IDEA
4.1 Creating a local repository
General and project the same address
4.2 The project is added to the local repository
Right Project:
4.3 submit project
Right Project:
Then then click Commit And Push
Click Define remote GitHub then cloned in front of the path to the fill can, push point
5. If Push appears to origin / master was rejected solve this problem as follows
This occurs in the import warehouses for the new warehouse, we just need to Git Bash here on our project right to import and then enter the git pull origin master --allow-unrelated- histories can be, and then we re-push this the project will be a success