git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
imcotton
V2EX  ›  git

Free private GitHub repository 101

  •  
  •   imcotton · May 23, 2012 · 5731 views
    This topic created in 5285 days ago, the information mentioned may be changed or developed.
    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 replies  •  1970-01-01 08:00:00 +08:00
    lex
    lex
    May 23, 2012
    1
    试了一下,果然可以。貌似还不会扣免费帐号的容量?
    imcotton
    imcotton
    OP
    May 23, 2012
    2
    @lex 是的,但是没试过太夸张的 push,怕弄响后台的警报被盯上。。。
    binux
    binux
    May 23, 2012
    3
    私有gist是不安全的,任何知道你gist地址的用户都可以访问你的代码。
    ayanamist
    ayanamist
    May 23, 2012
    4
    这么麻烦,为什么不用BitBucket,一样免费的Private Repo,还有完整的文件夹支持。
    imcotton
    imcotton
    OP
    May 23, 2012
    5
    @binux 嗯没错,所以只能管住自己不要泄露地址了
    imcotton
    imcotton
    OP
    May 23, 2012
    6
    @ayanamist 因为当初 Bitbucket 还不支持 git,现在我基本上的大项目放 Bitbucket,小东西不需要 web interface 的就放 gist 里了
    INT21H
    INT21H
    May 23, 2012
    7
    Bitbucket支持edu邮箱升级成Unlimited,很棒哦
    gonbo
    gonbo
    May 23, 2012
    8
    @imcotton bitbucket 早就支持git了吧。
    imcotton
    imcotton
    OP
    May 23, 2012
    9
    @gonbo 半年前 (October 3, 2011)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1807 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:01 · PVG 00:01 · LAX 08:01 · JFK 11:01
    ♥ Do have faith in what you're doing.