今天提交了一个基于phpflickr修改而来的cdflickr,主要是修改:支持oauth1授权,支持代理服务器,目前只是使用curl(原来的还用了fsock自行实现,但在上传文件部分还是只用了curl,所以干脆就只采用curl了)
跑题了,这里主要是简单记录了提交到github的步骤。
1、先注册github,然后建个项目,这个步骤省略了,会用github的,这里不会出现问题的;
2、设置sshkey,这个如果不做,就无法提交文件,错误可能是:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh-keygen -C 'your@email.address' -t rsa #用你注册github的邮箱弄个sshkey cat ~/.ssh/id_rsa.pub #把这个公钥复制到github的sshkey去 ##########这里就是git的命令,假设我把项目放在/tmp/cdflickr,先cd到这个目录,再进行处理 git init git add README.md #这个要提交的 git commit -m '注释' #提交,但还没有提交到github git remote add origin https://github.com/cidy0106/cdflickr.git #要提交的地址 git push -u origin master #终于提交上github了
这里顺便放我提交的项目地址吧https://github.com/cidy0106/cdflickr
» 转载保留版权:《记录一下提交cdflickr到github的过程》
» 本文链接地址:http://www.xidige.com/799