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

新手问个傻傻的问题

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