Created
May 28, 2013 15:50
-
-
Save CatTail/5663781 to your computer and use it in GitHub Desktop.
命令行创建github链接短链
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 如果你需要用短链表示github上的路径,可以使用git.io | |
| curl -i http://git.io -F "url=https://github.com/..." | |
| # HTTP/1.1 201 Created | |
| # Location: http://git.io/abc123 | |
| curl -i http://git.io/abc123 | |
| # HTTP/1.1 302 Found | |
| # Location: https://github.com/... | |
| # 你也可以设置你自己定义的url地址 | |
| curl -i http://git.io -F "url=https://github.com/technoweenie" -F "code=t" | |
| # HTTP/1.1 201 Created | |
| # Location: http://git.io/t | |
| # 相关参考 | |
| # https://github.com/blog/985-git-io-github-url-shortener |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment