Git: add vs push vs commit

后端 未结 8 777
自闭症患者
自闭症患者 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:28

    Very nice pdf about many GIT secrets.

    Add is same as svn's add (how ever sometimes it is used to mark file resolved).

    Commit also is same as svn's , but it commit change into your local repository.

提交回复
热议问题