git commit 和 git push的区别

转载:http://wenda.so.com/q/1435946424728324?src=140


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

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

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

猜你喜欢

转载自blog.csdn.net/private66/article/details/80881915