Git: add vs push vs commit

后端 未结 8 783
自闭症患者
自闭症患者 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条回答
  •  旧时难觅i
    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.

提交回复
热议问题