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

新手问个傻傻的问题

  •  
  •   cnqncom · Apr 23, 2017 · 4189 views
    This topic created in 3502 days ago, the information mentioned may be changed or developed.
    git 中的 add commit 是不是把修改的文件提交到本地库中?而 push 才会提交到远程的代码仓库中?
    7 replies  •  2017-04-23 13:51:06 +08:00
    wintercoder
    wintercoder
    Apr 23, 2017
    1
    add 只是加入到版本库的管理, commit 是提交到本地库, push 后才会到远程
    m31271n
    m31271n
    Apr 23, 2017
    2
    Y / Y
    m31271n
    m31271n
    Apr 23, 2017
    3
    N / Y / Y
    scriptB0y
    scriptB0y
    Apr 23, 2017
    4
    这种问题你可以自己尝试一下,大可不必到网上问。
    那你可能要问,我没有远程代码仓库啊。
    其实本地就可以建一个,从本地 pull 到本地,可以自己尝试很多问题。
    或者使用 github bitbucket 这种东西,反正不要钱。
    然后以后你遇到很难的问题也能自己解决了。
    sagaxu
    sagaxu
    Apr 23, 2017
    5
    用 git 前,不找点书或者文档看看吗?
    21grams
    21grams
    Apr 23, 2017
    6
    提问时直接把问题写在标题里,节省大家时间
    Tunar
    Tunar
    Apr 23, 2017 via Android
    7
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2237 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:29 · PVG 22:29 · LAX 06:29 · JFK 09:29
    ♥ Do have faith in what you're doing.