当前位置:网站首页>拉取码云某一个分支的所有数据覆盖本地代码
拉取码云某一个分支的所有数据覆盖本地代码
2022-06-22 05:04:00 【m0_51703800】
转
开发时,由于不当操作,需要从远程特定分支重新拉取代码,覆盖本地固定分支。具体代码如下:
git fetch --all
git reset --hard origin/分支名称(比如:git reset --hard origin/master)
git pull //可以省略
git fetch 指令是下载远程仓库最新内容,不做合并
git reset 指令把HEAD指向master最新版本
边栏推荐
- 9 practical shell scripts, recommended collection!
- 10道不得不会的 Redis 面试题
- 并发编程——线程池
- Flink deployment mode (II) - three deployment modes of yarn
- lua笔记
- [fault diagnosis] the picture cut code cannot be cut out, slide read_ Region does not run, but the program does not report an error
- @Conditional use
- flink部署模式(一)- standalone和application
- How much is London gold
- [user guide] use of Tsinghua source
猜你喜欢

Gavin's perception of transformer live class - NLU and policies data decryption, source code analysis and practice of insurance BOT in the insurance industry of Rasa dialogue robot project (57)

Progress warning and problem management of progress control in Zhiyuan project management SPM system

Great! Huaibei and Huaibei enterprises are approved to use special marks for geographical indication products

使用matplotlib实现GUI交互效果

Pull down refresh, push up load (easy to use, finally)

软考2022年下半年考试科目安排
![Reading notes on how MySQL works [updating]](/img/4a/56cff3db0d45e66f51beb490c3ae71.jpg)
Reading notes on how MySQL works [updating]

守护进程的流程
![[chrome] Google tips Google browser comes with scrolling screenshot (full screen shot)](/img/9b/6ad704959a77abf9cb28fdd33b81b5.png)
[chrome] Google tips Google browser comes with scrolling screenshot (full screen shot)

【故障诊断】CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace b
随机推荐
【故障诊断】CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace b
Final examination questions of Database Principles
Go learning (II. Built in container)
ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢複---惜分飛
花式优化器整理
10道不得不会的 Redis 面试题
Understanding of service container, service provider and facade of laravel
Daemon flow
mysql day04课堂笔记
Common knowledge arrangement of numpy database
使用Chrome调试微信内置浏览器
flink部署模式总结
Compilation des connaissances communes de la base de données numpy
招贤纳士-第23期
Postman uses (reads) JSON files for batch testing
Disturbed when programmers are programming? Daily anecdotes
[fault diagnosis] the picture cut code cannot be cut out, slide read_ Region does not run, but the program does not report an error
How to display loading animation when requesting data
[sdx62] IPA log fetching instructions
Solve the shortage of developers. Maybe it can help you