Git: Override Local Version

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

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.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值