We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git.io 是 GitHub 站内链接的短网址服务,可以直接在网页上生成短链接,也可以用通过命令端完成,使用说明:Git.io: GitHub URL Shortener.
可以通过设定参数code=lo22来自定义短链接参数,如本页面:git.io/lo22
code=lo22
curl -i https://git.io -F url=https://github.com/rainyear/lolita/issues/22 -F code=lo22 HTTP/1.1 100 Continue HTTP/1.1 201 Created Location: https://git.io/lo22
放到脚本里:
#!/bin/bash if [ -n "$2" ]; then curl -i https://git.io -F url=https://github.com/"$1" -F code="$2"; else curl -i http://git.io -F url=https://github.com/"$1"; fi
需要注意的是每个链接只能被缩短一次,想要选个特殊意义的链接(注意大小写敏感),要慎重,我选了几个:
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
赞!
貌似你的域名coodict.com 已经废了ヽ(ー_ー)ノ
rainyear
No branches or pull requests
Git.io 是 GitHub 站内链接的短网址服务,可以直接在网页上生成短链接,也可以用通过命令端完成,使用说明:Git.io: GitHub URL Shortener.
可以通过设定参数
code=lo22
来自定义短链接参数,如本页面:git.io/lo22放到脚本里:
需要注意的是每个链接只能被缩短一次,想要选个特殊意义的链接(注意大小写敏感),要慎重,我选了几个:
The text was updated successfully, but these errors were encountered: