First the Git tool, download the address:
http://download.csdn.net/detail/qq_35624642/9734979
IntelliJ idea integrates support for GitHub, making it easier and faster to upload code to github and download code from GitHub.
1. Share code to GitHub first you need to configure Git in IntelliJ, and if not configured correctly, the following error occurs:
Open the Setup Panel by File->settings, as shown in figure:
2. The first upload code to the GitHub operation is as follows:
You will need to enter a username and password.
3. Non-upload code for the first time, you need to follow the Add->commit->push way, just like using git commands. As shown in figure:
2. The previous operation will open the following interface:
Where add this step can be omitted, direct Commit->push.
2. From GitHub the clone code first selects File->new->project from Version Control->github
2. The previous operation will open the following interface:
At Git Repository url, enter the URL of the item that requires clone.