Git: Override Local Version
F:\trunk>git fetch --all
Fetching origin
Warning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xx' to the list of known hosts.
F:\trunk>git reset --hard origin/dev
Checking out files: 100% (1495/1495), done.
HEAD is now at bfef3b1 just a test, never mind.
F:\trunk>git pull
Already up to date.

本文详细记录了使用Git进行硬重置到远程仓库指定分支(dev)的过程,包括fetch获取所有远程仓库的更新,reset硬重置本地版本到远程版本,以及pull检查是否已是最新的更新状态。
1606

被折叠的 条评论
为什么被折叠?



