V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
imcotton
V2EX  ›  git

Free private GitHub repository 101

  •  
  •   imcotton · 2012-05-23 12:53:44 +08:00 · 4323 次点击
    这是一个创建于 4327 天前的主题,其中的信息可能已经有所发展或是发生改变。
    101:
    * 你们都知道 gist.github.com 对吧
    * 这里面可以建立 private gist
    * 而 gist 实际上就是一个 pure git repository
    * 完

    Tips:
    * gist 的 Web 界面无法创建或呈现文件夹,但是通过 git protocol 提交进 repo 并不受限制
    * 不要在 Web 界面编辑已有目录结构的 gist,否则会被破坏结构
    * remote master branch 无法删除
    * git push -f 可以强制覆盖掉远程的 branch,可以用来清理掉 gist 初始化自动创建的 commit
    9 条回复    1970-01-01 08:00:00 +08:00
    lex
        1
    lex  
       2012-05-23 13:13:46 +08:00
    试了一下,果然可以。貌似还不会扣免费帐号的容量?
    imcotton
        2
    imcotton  
    OP
       2012-05-23 13:19:51 +08:00
    @lex 是的,但是没试过太夸张的 push,怕弄响后台的警报被盯上。。。
    binux
        3
    binux  
       2012-05-23 13:23:03 +08:00
    私有gist是不安全的,任何知道你gist地址的用户都可以访问你的代码。
    ayanamist
        4
    ayanamist  
       2012-05-23 13:23:33 +08:00
    这么麻烦,为什么不用BitBucket,一样免费的Private Repo,还有完整的文件夹支持。
    imcotton
        5
    imcotton  
    OP
       2012-05-23 13:24:44 +08:00
    @binux 嗯没错,所以只能管住自己不要泄露地址了
    imcotton
        6
    imcotton  
    OP
       2012-05-23 13:28:42 +08:00
    @ayanamist 因为当初 Bitbucket 还不支持 git,现在我基本上的大项目放 Bitbucket,小东西不需要 web interface 的就放 gist 里了
    INT21H
        7
    INT21H  
       2012-05-23 13:40:52 +08:00
    Bitbucket支持edu邮箱升级成Unlimited,很棒哦
    gonbo
        8
    gonbo  
       2012-05-23 13:43:58 +08:00
    @imcotton bitbucket 早就支持git了吧。
    imcotton
        9
    imcotton  
    OP
       2012-05-23 13:52:25 +08:00
    @gonbo 半年前 (October 3, 2011)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1402 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:29 · PVG 01:29 · LAX 10:29 · JFK 13:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.