github不说了吧,谈谈gist,引用wiki一段话(注意红色字体): git
GitHub also operates other services: a pastebin-style site called Gist[8] that provides wikis for individual repositories and web pages that can be edited through a Git repository
有时就须要给gist上传一些图片,在看看github gist上提供的: github
貌似就没打算让咱们上传图片嘛!像咱们这种追求完美的程序猿,怎么也没法逃避那颗骚动的心!咱就要图文并茂,怎么办?·「如有更好办法,欢迎指点」 web
github上建立本身的gist,例如我建立的:https://gist.github.com/walkingnine/6199161, ID即为 6199161 shell
git clone git@github.com:ID.git例如个人:
git clone git@github.com:6199161.git
若是你和我开始同样,不幸使用了https, 并且官网也提供了, ssh
看到这个乐坏了吧,赶快使用 ide
git clone https://gist.github.com/6199161.git庆幸的是你成功的clone下来了,不幸的是使用
git push origin master会出现:
Username for 'https://gist.github.com': walkingnine@gmail.com Password for 'https://walkingnine@gmail.com@gist.github.com': error: RPC failed; result=55, HTTP code = 0 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly
这时你能够在gist项目中添加本身的图片或者文件等,而后使用git add/commit命令,最后: 字体
git push origin master # master is the branch, you may use your own branch.刷刷网页,再看看,肿么样,图片就华丽丽的出如今你那迷人的双眼里。