eclipse使用git提交到github
右键项目-》Team-》Share Project...
![](https://app.yinxiang.com/shard/s51/res/97b423cf-6b4a-4cf2-9354-f7e0f845a713/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/1d624dc8-1053-494a-a255-31282fe44a8b/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/8a533168-0b8b-4bd7-bb8f-31721caafaea/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/944a7525-d12d-4fd4-96f1-7669c5bf7f77/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/77e3bcb1-931d-4ae8-8401-18135ed2ef10/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/60797617-2925-4093-a035-db3e322a13d4/tmp.png)
提交项目到远程github仓库
访问github,登录自己账号
![](https://app.yinxiang.com/shard/s51/res/616d3b93-97c7-4696-a1d8-3a7298adeb3b/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/f5160298-f743-4c86-85be-79f7f6bde2da/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/bfe42311-ba79-4f4b-b84e-22ec2c748293/tmp.png)
右键项目-》Team-》Commit
![](https://app.yinxiang.com/shard/s51/res/c857ae53-622d-4f44-b35c-f6134f6902ca/tmp.png)
stage 想要提交的文件(提交到暂存区)
![](https://app.yinxiang.com/shard/s51/res/299c106c-24fd-42c2-b044-e1d276b43e5e/tmp.png)
提交并push到远程仓库
![](https://app.yinxiang.com/shard/s51/res/48678f39-7543-4413-aaab-ab09fd4cbdb8/tmp.png)
复制远程仓库地址
git@github.com:jinxilongjxl/concurrent.git
![](https://app.yinxiang.com/shard/s51/res/4f2557a1-293b-473b-8fca-8e6892f32e8f/tmp.png)
拷贝到URI中
![](https://app.yinxiang.com/shard/s51/res/27ec04d2-9f3d-4fe6-a728-0197ccd85076/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/176bc92d-702e-4550-9fd6-6c846527bce5/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/3940b198-2791-4c0a-9eca-85f4f4bb669c/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/bcd0c1fa-7348-460b-9e43-7393b533de79/tmp.png)
查看github发现提交成功
![](https://app.yinxiang.com/shard/s51/res/7e77c5db-7686-419b-9fbc-5783c676e447/tmp.png)
tips:如果提示认证失败
window-》preference
![](https://app.yinxiang.com/shard/s51/res/90776e85-2dd4-484a-b57f-d3f8657cdce8/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/1f97177b-d92f-4afc-aac1-9e88abf1cd7b/tmp.png)
把刚刚生成公钥放到github上
![](https://app.yinxiang.com/shard/s51/res/3cf29553-ccf0-47ad-9e8d-a016a0d7dc4b/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/941b9747-398b-4cb7-bd76-482a242e3e47/tmp.png)
![](https://app.yinxiang.com/shard/s51/res/c8b8adb7-1d2d-43e5-910f-b17c20e74a9a/tmp.png)
然后进行commit应该没有没问题了