当前位置:网站首页>Using source tree to delete remote and local warehouses by mistake

Using source tree to delete remote and local warehouses by mistake

2022-06-09 10:33:00 Mister procedural ape

I owe you today , Accidentally deleted the newly developed branch , Along with the remote branch , A fluster ..., Thanks to Du Niang for letting me find a way , Here is a record of

1、 Open in the project root directory git Command line window
2、 Input git reflog
3、 Find the branch information to recover
4、 Find the latest one commit Information
5、 Ctrl+C Exit view mode
6、git checkout -b hotfix_ljz_20220530_cule 69ebcbd19
 Insert picture description here
7、 Callback again sourcetree You can see that the branch has been restored
8、 If you need to recover to a remote branch , Then push to the remote end

Reference resources :http://t.zoukankan.com/boonya-p-14810113.html
Reference resources :https://blog.csdn.net/yanghui555/article/details/122218251

原网站

版权声明
本文为[Mister procedural ape]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090952176441.html