{"action":"created","issue":{"url":"https://api.github.com/repos/FatliTalk/blog/issues/11","repository_url":"https://api.github.com/repos/FatliTalk/blog","labels_url":"https://api.github.com/repos/FatliTalk/blog/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/FatliTalk/blog/issues/11/comments","events_url":"https://api.github.com/repos/FatliTalk/blog/issues/11/events","html_url":"https://github.com/FatliTalk/blog/issues/11","id":200103249,"number":11,"title":"IntelliJ IDEA 提交代码到 GitHub","user":{"login":"FatliTalk","id":19491358,"avatar_url":"https://avatars1.githubusercontent.com/u/19491358?v=3","gravatar_id":"","url":"https://api.github.com/users/FatliTalk","html_url":"https://github.com/FatliTalk","followers_url":"https://api.github.com/users/FatliTalk/followers","following_url":"https://api.github.com/users/FatliTalk/following{/other_user}","gists_url":"https://api.github.com/users/FatliTalk/gists{/gist_id}","starred_url":"https://api.github.com/users/FatliTalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FatliTalk/subscriptions","organizations_url":"https://api.github.com/users/FatliTalk/orgs","repos_url":"https://api.github.com/users/FatliTalk/repos","events_url":"https://api.github.com/users/FatliTalk/events{/privacy}","received_events_url":"https://api.github.com/users/FatliTalk/received_events","type":"User","site_admin":false},"labels":[{"id":512988710,"url":"https://api.github.com/repos/FatliTalk/blog/labels/GitHub","name":"GitHub","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-11T14:11:45Z","updated_at":"2017-07-04T03:31:45Z","closed_at":null,"body":"# 一、设置相关绑定 \r\n\r\n1. Settings—>Version Control—>Git（提前下载好）—>Path to Git executable—>选择你提前下载好的的 git.exe 安装目录\r\n![1 git exe](https://cloud.githubusercontent.com/assets/19491358/21850693/c51c5ea4-d846-11e6-9d7a-65ecde621307.jpg)\r\n\r\n2. Settings ——Version Control——GitHub（Host：github.com，Login:账号，Password：密码 ）\r\n![2 github](https://cloud.githubusercontent.com/assets/19491358/21850695/c7473d5c-d846-11e6-8a56-ff1516694a69.jpg)\r\n\r\n<br />\r\n\r\n# 二、配置远程 \r\n\r\n1. **Share Project on GitHub（上传项目到GitHub） ：**\r\nVCS—>Import into Version Control—>Share Project on GitHub\r\n![share project on github](https://cloud.githubusercontent.com/assets/19491358/21850720/e8032830-d846-11e6-936c-56949f1c3f24.jpg)\r\n\r\n2. **Clone 克隆 GitHub 上的代码到本地：**\r\n在 GitHub 上创建仓库后，复制仓库地址，比如 https://github.com/FatliTalk/test ，\r\n在 IntelliJ IDEA 中 VCS—>Checkout from Version Control—>Git（或GitHub）中，粘贴仓库url地址（选择仓库），从 GitHub 仓库中 Clone 克隆一份项目，然后就可以在本地进行修改，然后再 Push 到 GitHub（见2.3）。\r\n![github](https://cloud.githubusercontent.com/assets/19491358/21851038/5e0a4404-d848-11e6-9a3a-101a6498af4c.jpg)\r\n\r\n3. **IntelliJ IDEA 上 Push 修改后的代码到 GitHub：**\r\n选中项目—>右键—>Git—>Repository—>Push（在 Push 到 GitHub 之前，需 Add—>Commit 到本地仓库）\r\nPS：在实际开发过程中，我们还可以使用本地的 git（或者 GitHub 客户端）进行版本管理 ，最后使用push 进行远程提交。\r\n![push to github](https://cloud.githubusercontent.com/assets/19491358/21851206/f5a0642e-d848-11e6-9390-3260bbc9c8df.jpg)\r\n\r\n<br />\r\n\r\n---\r\n\r\n**_——END_**"},"comment":{"url":"https://api.github.com/repos/FatliTalk/blog/issues/comments/312772310","html_url":"https://github.com/FatliTalk/blog/issues/11#issuecomment-312772310","issue_url":"https://api.github.com/repos/FatliTalk/blog/issues/11","id":312772310,"user":{"login":"FatliTalk","id":19491358,"avatar_url":"https://avatars1.githubusercontent.com/u/19491358?v=3","gravatar_id":"","url":"https://api.github.com/users/FatliTalk","html_url":"https://github.com/FatliTalk","followers_url":"https://api.github.com/users/FatliTalk/followers","following_url":"https://api.github.com/users/FatliTalk/following{/other_user}","gists_url":"https://api.github.com/users/FatliTalk/gists{/gist_id}","starred_url":"https://api.github.com/users/FatliTalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FatliTalk/subscriptions","organizations_url":"https://api.github.com/users/FatliTalk/orgs","repos_url":"https://api.github.com/users/FatliTalk/repos","events_url":"https://api.github.com/users/FatliTalk/events{/privacy}","received_events_url":"https://api.github.com/users/FatliTalk/received_events","type":"User","site_admin":false},"created_at":"2017-07-04T03:31:45Z","updated_at":"2017-07-04T03:31:45Z","body":"@2629743986 你好，你在GitHub上成功创建了项目，但问题在于“初始推送失败：无法从远程存储库读取。”  我觉得可能是 GitHub 的问题，毕竟服务器在国外，有时候会连接失败，建议按照教程再作尝试。"}}
{"actor":{"display_login":"FatliTalk"}}