示例
- 网址:https://git.io/
- GitHub作为图床使用时,图片网址过长,可以选择短网址服务。
- 例如图片:
![](https://i-blog.csdnimg.cn/blog_migrate/6631ef54cc828fc6cb2155b01a8018f0.gif)
,这个网址够长了吧!!!
- 那么它的短网址就是:https://git.io/fAmK0 ,
![](https://git.io/fAmK0)
,效果一样
自定义git.io后缀
脚本:https://raw.githubusercontent.com/ds19991999/shell.sh/shell/shortgit.sh
用法:
# shortcode为自定义的后缀
bash shortgit.sh url shortcode
# 一般用法,随机生成短链
bash shortgit.sh url