git入门之remote篇

安装最新版git

如果不幸你的linux是redhat和CentOS,最新版可以从这里下载或其镜像:
https://github.com/git/git”
自从2.0.0版本,默认安装curl而且需要匹配的curl,在这里下载。
即使匹配了curl,openssl也需要注意更新,否则仍然无法使用https。
对于旧版本机器,如果出现错误

SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/projectname

则将协议改为
git://github.com/projectname


部署(Deploy)你的应用

如果没有自己的服务器,和肉库(heroku)可以方便的远程托管你的程序(node.js、ruby、java、php、python、go等)。自带海量的数据库、插件而且支持一键部署,就是这么简单。
首先到这里注册账号,然后下载对应的命令行工具。

heroku git:remote -a appname
heroku fork -a sourceapp targetapp

git remote add heroku [email protected]:project.git

附上新版git的官方中文说明网址
https://git-scm.com/book/zh/v2