cys
V2EX  ›  GitHub

关于 Github 的 Push 文件夹功能

  •  
  •   cys · Aug 26, 2015 · 2368 views
    This topic created in 3912 days ago, the information mentioned may be changed or developed.
    假如说在本地创建一个库: repo-example ,在 Github 上也创建了 repo-example ,两个库连接之后,进行 push
    怎样使 push 的库的子文件直接显示在如: github.com/userid/repo-example 下而不是在此连接下的 repo-example 子文件夹中
    如: github.com/userid/repo-example/tree/master/repo-example

    举个例子:
    Push 之后的文件夹结构是这种: https://github.com/daylerees/colour-schemes
    而不是在这个地址下再创建创建一个文件夹 colour-schemes 然后文件都在里面。
    3 replies    2015-08-26 10:24:48 +08:00
    networm
        1
    networm  
       Aug 26, 2015 via iPad
    你在本地创建玩一个 repo-example 目录后,不要在其父目录执行 git init ,而是要进入这个目录执行 git init 然后再推送。
    cys
        2
    cys  
    OP
       Aug 26, 2015
    @networm 哈哈,我好像就是在父目录执行的 git init ,我修改试试下。
    cys
        3
    cys  
    OP
       Aug 26, 2015
    @networm 哈哈,还真是这样子呢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3561 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.