Skip to content

Instantly share code, notes, and snippets.

@msh01
Created February 10, 2018 02:46
Show Gist options
  • Save msh01/39ba7b5a5b18ef5d36a411a216a77fad to your computer and use it in GitHub Desktop.
Save msh01/39ba7b5a5b18ef5d36a411a216a77fad to your computer and use it in GitHub Desktop.

git commitgit push的区别:

git 作为支持分布式版本管理的工具,它管理的库(repository)分为本地库、远程库。

  1. git commit 操作的是本地库,git push 操作的是远程库。
  2. git commit 将本地修改过的文件提交到本地库,然后git push 将本地库中的文件变动推送到远程库
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment