git commit和git push的区别

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

git commit操作的是本地库,git push操作的是远程库。

git commit是将本地修改过的文件提交到本地库中。
git push是将本地库中的最新信息发送给远程库。

posted @ 2021-04-09 22:58  poowicat  阅读(262)  评论(0编辑  收藏  举报