如何更新Git克隆 [英] How to update Git clone
本文介绍了如何更新Git克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经开始使用Git.我已经在本地系统上克隆了仓库.我在本地计算机上进行了更改,并使用git push
来更新远程仓库.效果很好.
I have started using Git. I have cloned the repo on my local system. I make the changes on the local machine and use git push
to the update the remote repo. It works fine.
我快速查询了如何从远程更新克隆.我尝试了git remote update
.它不起作用,不会出现新的更改.我只想确保在开始工作之前已拥有该回购协议的最新副本.如何更新克隆?
I have a quick query how to update my clone from the remote. I tried git remote update
. It did not work, new changes does not appear. I just want to make sure I have recent copy of the repo before I get to work. How I can update the clone?
推荐答案
如果要获取+合并,请运行
If you want to fetch + merge, run
git pull
如果您只想获取:
git fetch
这篇关于如何更新Git克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文