Git: add vs push vs commit

后端 未结 8 738
自闭症患者
自闭症患者 2020-12-04 05:04

What is the difference between git add, push and commit?

Just a little confused coming from SVN, where \"update\" will \'add\'

相关标签:
8条回答
  • 2020-12-04 05:33

    I find this image very meaningful :

    (from : Oliver Steele -My Git Workflow (2008) )

    0 讨论(0)
  • 2020-12-04 05:34

    add tells git to start tracking a file.

    commit commits your current changes on your local repository

    push pushes you local repo upstream.

    0 讨论(0)
提交回复
热议问题