1. Install git
: http://git-scm.com/download, install git and set environment variables, C:\Program Files (x86) \git\bin into system variables.
2. Set initialization parameters
Enter the following command at the command line:
git config--global user.name = "Your user name"
git config--global user.email = "Email Address"
3. Get SSH public key
Open git bash git, enter the command ssh-keygen-t rsa-c "email address", all the way to enter, then in the directory will generate. SSH directory, my directory is:
C:\Users\Arvin\.ssh
4. Add a public key on GitHub
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/26/wKiom1VAo1rzrAO5AALMmhmHDaQ426.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1vao1rzrao5aalmmhmhdaq426.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VApMGC_C3RAAH9shnL-Xg746.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1vapmgc_c3raah9shnl-xg746.jpg "/>
Click Add.
5. The test is successful
Enter the command in git bash ssh-t [email protected] After you see the following message, indicating success!
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/22/wKioL1VApPKAHG-qAAGoMKYF6pI358.jpg "title=" 3.png " alt= "Wkiol1vappkahg-qaagomkyf6pi358.jpg"/>
6. Create a project on GitHub
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VAp1zzlzLjAAGa1e5Fec4691.jpg "style=" float: none; "title=" 4.png "alt=" Wkiol1vap1zzlzljaaga1e5fec4691.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/26/wKiom1VApfXwOYLAAAMRF1mm5DI562.jpg "style=" float: none; "title=" 5.png "alt=" Wkiom1vapfxwoylaaamrf1mm5di562.jpg "/>
Click Create to create a project on GitHub.
7. Use Eclipse to sync your local project to GitHub
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VAp5WDK2aYAAJoPAmaBak454.jpg "style=" float: none; "title=" 6.png "alt=" Wkiol1vap5wdk2ayaajopamabak454.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/22/wKioL1VAp5bCasZ_AAKcbD69I8A011.jpg "style=" float: none; "title=" 7.png "alt=" Wkiol1vap5bcasz_aakcbd69i8a011.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/26/wKiom1VApi_xmWJLAAH8Txff9-Y323.jpg "style=" float: none; "title=" 8.png "alt=" Wkiom1vapi_xmwjlaah8txff9-y323.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VAp5ajPP7OAAEm8RtTJdM692.jpg "style=" float: none; "title=" 9.png "alt=" Wkiol1vap5ajpp7oaaem8rttjdm692.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/22/wKioL1VAp7uhDBYIAAGSUwtYZMg062.jpg "title=" 10.png "alt=" Wkiol1vap7uhdbyiaagsuwtyzmg062.jpg "/>
At this point our project will be displayed in this way:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VAqBqBj1iAAADGoJkNiIs091.jpg "title=" 11.png "alt=" wkiol1vaqbqbj1iaaadgojkniis091.jpg "/> 650" this.width=650; "src="/e/u261/themes/default/images/ Spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid # DDD; "alt=" Spacer.gif "/>
It's not over yet, keep going down.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/26/wKiom1VApsySm_nMAAML_G3Kapo639.jpg "style=" float: none; "title=" 12.png "alt=" Wkiom1vapsysm_nmaaml_g3kapo639.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/22/wKioL1VAqDTgAernAAKvztS22eM682.jpg "style=" float: none; "title=" 13.png "alt=" Wkiol1vaqdtgaernaakvzts22em682.jpg "/>
The items at this point are shown below:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/26/wKiom1VApszi7FdwAACyt6fUJtU463.jpg "style=" float: none; "title=" 14.png "alt=" Wkiom1vapszi7fdwaacyt6fujtu463.jpg "/>
Next commit to GitHub.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/26/wKiom1VApveyONGGAAIzPK0pPbM852.jpg "style=" float: none; "title=" 16.png "alt=" Wkiom1vapveyonggaaizpk0ppbm852.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/26/wKiom1VApvfgnjlcAAWiOFngzjU301.jpg "style=" float: none; "title=" 17.png "alt=" Wkiom1vapvfgnjlcaawiofngzju301.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/22/wKioL1VAqF_hKz3jAAJumhCOSn0910.jpg "style=" float: none; "title=" 18.png "alt=" Wkiol1vaqf_hkz3jaajumhcosn0910.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/26/wKiom1VApvijt8pfAALlow5uE-0624.jpg "style=" float: none; "title=" 19.png "alt=" Wkiom1vapvijt8pfaallow5ue-0624.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/26/wKiom1VApvmDGZMXAALz5LIk7N8217.jpg "style=" float: none; "title=" 20.png "alt=" Wkiom1vapvmdgzmxaalz5lik7n8217.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/22/wKioL1VAqGGhcuJoAAJeNng_t68332.jpg "style=" float: none; "title=" 21.png "alt=" Wkiol1vaqgghcujoaajenng_t68332.jpg "/>
Refresh the GitHub project as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/26/wKiom1VApvrj_zYSAALWtO4tAeU327.jpg "style=" float: none; "title=" 22.png "alt=" Wkiom1vapvrj_zysaalwto4taeu327.jpg "/>
This article is from "Teng hu" blog, please be sure to keep this source http://tenghu.blog.51cto.com/5754647/1640429
Using Git in eclipse