V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ca3w
V2EX  ›  GitHub

使用 git.io 缩短 github 网址

  •  
  •   ca3w · 2018-03-16 09:54:02 +08:00 · 3317 次点击
    这是一个创建于 2232 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/blog/985-git-io-github-url-shortener

    $ curl -i https://git.io -F "url=https://ca3w.github.io/" -F "code=ca3w"
    HTTP/1.1 201 Created
    Server: Cowboy
    Connection: keep-alive
    Date: Sun, 21 Jan 2018 02:06:23 GMT
    Status: 201 Created
    Content-Type: text/html;charset=utf-8
    Location: https://git.io/ca3w
    Content-Length: 23
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    X-Runtime: 0.012334
    X-Node: acdfc202-b91c-40fa-9b91-1281ac7d8523
    X-Revision: 392798d237fc1aa5cd55cada10d2945773e741a8
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    Via: 1.1 vegur
    
    https://ca3w.github.io/
    

    打开 git.io/ca3w 301 到 云上认证机构管理系统

    3 条回复    2018-03-16 12:40:38 +08:00
    xiaoz
        1
    xiaoz  
       2018-03-16 10:41:08 +08:00
    Must be a GitHub.com URL.要是能开放所有网址就好了
    luoway
        2
    luoway  
       2018-03-16 10:47:28 +08:00
    不能用其他网址覆盖已有 code ?
    MinonHeart
        3
    MinonHeart  
       2018-03-16 12:40:38 +08:00 via iPhone
    浏览器里是 gi 回车
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3826 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:53 · PVG 08:53 · LAX 17:53 · JFK 20:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.