gist命令工具使用
文章目录
【注意】最后更新于 October 11, 2018,文中内容可能已过时,请谨慎使用。
{% github defunkt gist 8d86604 width = 30% %} 按照gist
安装gist
| |
创建gist
上传a.rb中的代码段:
| |
上传多个文件a.rb,b.rb,c.rb的代码段:
| |
作为文件上传:获取STDIN数据,并使用-f指定文件名test.rb上传:
| |
直接从剪切板上传文本:
| |
设置隐私片段 -p:
| |
添加片段描述信息-d:
| |
更新现有的片段 -u:
| |
If you’d like to copy the resulting URL to your clipboard, use -c.
| |
If you’d like to copy the resulting embeddable URL to your clipboard, use -e.
| |
打开浏览器访问片段 -o.
| |
To list (public gists or all gists for authed user) gists for user
gist -l : all gists for authed user
gist -l defunkt : list defunkt’s public gists
To read a gist and print it to STDOUT
| |
See gist --help for more detail.
使用gist命令
使用gistit快捷工具
{% github jrbasso gistit 99fc659 width = 30% %}
| |
| |
文章作者 iTBoyer
上次更新 2018-10-11