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

Git 2.0 发布

  •  1
     
  •   amio 2014-05-31 10:29:43 +08:00 4229 次点击
    这是一个创建于 4152 天前的主题,其中的信息可能已经有所发展或是发生改变。
    两天了这里都没动静……我来贴个吧

    Release Notes:
    https://git.kernel.org/cgit/git/git.git/tree/Documentation/RelNotes/2.0.0.txt

    改变的部分基本上都是更符合直觉的:

    Backward compatibility notes
    ----------------------------

    When "git push [$there]" does not say what to push, we have used the
    traditional "matching" semantics so far (all your branches were sent
    to the remote as long as there already are branches of the same name
    over there). In Git 2.0, the default is now the "simple" semantics,
    which pushes:

    - only the current branch to the branch with the same name, and only
    when the current branch is set to integrate with that remote
    branch, if you are pushing to the same remote as you fetch from; or

    - only the current branch to the branch with the same name, if you
    are pushing to a remote that is not where you usually fetch from.

    You can use the configuration variable "push.default" to change
    this. If you are an old-timer who wants to keep using the
    "matching" semantics, you can set the variable to "matching", for
    example. Read the documentation for other possibilities.

    When "git add -u" and "git add -A" are run inside a subdirectory
    without specifying which paths to add on the command line, they
    operate on the entire tree for consistency with "git commit -a" and
    other commands (these commands used to operate only on the current
    subdirectory). Say "git add -u ." or "git add -A ." if you want to
    limit the operation to the current directory.

    "git add <path>" is the same as "git add -A <path>" now, so that
    "git add dir/" will notice paths you removed from the directory and
    record the removal. In older versions of Git, "git add <path>" used
    to ignore removals. You can say "git add --ignore-removal <path>" to
    add only added or modified paths in <path>, if you really want to.

    The "-q" option to "git diff-files", which does *NOT* mean "quiet",
    has been removed (it told Git to ignore deletion, which you can do
    with "git diff-files --diff-filter=d").

    "git request-pull" lost a few "heuristics" that often led to mistakes.

    The default prefix for "git svn" has changed in Git 2.0. For a long
    time, "git svn" created its remote-tracking branches directly under
    refs/remotes, but it now places them under refs/remotes/origin/ unless
    it is told otherwise with its "--prefix" option.
    2 条回复    2014-05-31 11:08:00 +08:00
    Artotria
        1
    Artotria  
       2014-05-31 10:59:42 +08:00
    啊咧,出2.0version了QwQ
    cielpy
        2
    cielpy  
       2014-05-31 11:08:00 +08:00
    已安装。。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5458 人在线   最高记录 6679 &nbs;     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 01:24 PVG 09:24 LAX 18:24 JFK 21:24
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86