{"action":"created","issue":{"url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/1","labels_url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/1/comments","events_url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/1/events","html_url":"https://github.com/fortyMiles/fortymiles.github.io/issues/1","id":114962910,"number":1,"title":"cool","user":{"login":"Wellaiyo","id":10163680,"avatar_url":"https://avatars.githubusercontent.com/u/10163680?v=3","gravatar_id":"","url":"https://api.github.com/users/Wellaiyo","html_url":"https://github.com/Wellaiyo","followers_url":"https://api.github.com/users/Wellaiyo/followers","following_url":"https://api.github.com/users/Wellaiyo/following{/other_user}","gists_url":"https://api.github.com/users/Wellaiyo/gists{/gist_id}","starred_url":"https://api.github.com/users/Wellaiyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wellaiyo/subscriptions","organizations_url":"https://api.github.com/users/Wellaiyo/orgs","repos_url":"https://api.github.com/users/Wellaiyo/repos","events_url":"https://api.github.com/users/Wellaiyo/events{/privacy}","received_events_url":"https://api.github.com/users/Wellaiyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T03:42:33Z","updated_at":"2015-11-04T05:28:09Z","closed_at":null,"body":"> 刚看到，确实会玩....   66666~\r\n\r\njekyll 简直酷毙了，还有中英双版和简约大气的style   ，  哈哈"},"comment":{"url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/comments/153578278","html_url":"https://github.com/fortyMiles/fortymiles.github.io/issues/1#issuecomment-153578278","issue_url":"https://api.github.com/repos/fortyMiles/fortymiles.github.io/issues/1","id":153578278,"user":{"login":"fortyMiles","id":6982171,"avatar_url":"https://avatars.githubusercontent.com/u/6982171?v=3","gravatar_id":"","url":"https://api.github.com/users/fortyMiles","html_url":"https://github.com/fortyMiles","followers_url":"https://api.github.com/users/fortyMiles/followers","following_url":"https://api.github.com/users/fortyMiles/following{/other_user}","gists_url":"https://api.github.com/users/fortyMiles/gists{/gist_id}","starred_url":"https://api.github.com/users/fortyMiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortyMiles/subscriptions","organizations_url":"https://api.github.com/users/fortyMiles/orgs","repos_url":"https://api.github.com/users/fortyMiles/repos","events_url":"https://api.github.com/users/fortyMiles/events{/privacy}","received_events_url":"https://api.github.com/users/fortyMiles/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T05:28:09Z","updated_at":"2015-11-04T05:28:09Z","body":"首先在你的服务器上建立一个git账户（不建可以，但是这样方便管理）\r\n```\r\n$ sudo adduser git\r\n$ su git\r\n$ cd\r\n$ mkdir .ssh && chmod 700 .ssh\r\n$ touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys\r\n```\r\n然后把你自己的 key 加到 authorized_keys 里边，\r\n本机执行\r\n```bash \r\n$cat /tmp/id_rsa.your.pub\r\n```\r\n然后 scp 到那个 git 账户里边，然后\r\n```bash\r\ncat /tmp/id_rsa.your.pub >> ~/.ssh/authorized_keys \r\n```\r\n这样你就能ssh访问git这个账户了，也就能方位git服务器了。 \r\n然后在远程服务器上，cd到一个地方去，\r\n```bash\r\n$ cd /opt/git\r\n$ mkdir project.git\r\n$ cd project.git\r\n$ git init --bare\r\nInitialized empty Git repository in /opt/git/project.git/\r\n```\r\n然后在你自己的机器上：\r\n```bash\r\n$ cd myproject\r\n$ git init\r\n$ git add .\r\n$ git commit -m 'initial commit'\r\n$ git remote add origin git@gitserver:/opt/git/project.git\r\n$ git push origin master\r\n```\r\n然后就好了\r\n\r\n具体不了解的话，再看一下git的官方文档\r\n\r\nReference:\r\n1. [how to set a git server, from git-scm](http://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server)\r\n\r\n\r\nBest Regard!\r\nMinchiuan Gao\r\nTEL: +86 18857453090\r\n\r\nDate: Tue, 3 Nov 2015 19:45:00 -0800\r\nFrom: notifications@github.com\r\nTo: fortymiles.github.io@noreply.github.com\r\nSubject: Re: [fortymiles.github.io] cool (#1)\r\n\r\n我前两天刚入手了MacBook ， 权哥赐教，如何可以在本地和云服务器之间push\r\n\r\n\r\n本地操作我差不多都会了 ， 但是怎么建立一个源仓库，可以让其它位置可以执行push等操作呢？就好像之前，你将公司仓库里的代码push到云服务器\r\n\r\n\r\n―\r\nReply to this email directly or view it on GitHub.\r\n\r\n\r\n  \r\n  \r\n\r\n\r\n \t\t \t   \t\t  "}}