gpt4 book ai didi

git - VS代码 "please clean your repository working tree before checkout"

转载 作者:太空狗 更新时间:2023-10-29 12:45:15 42 4
gpt4 key购买 nike

在 Visual Studio Code 中,我做了一些我不想同步提交的更改。但是,放假后,我想从服务器同步文件(同事的更改)。所以在 Visual Studio Code 中,我想进行同步。

我收到一条消息“请在 checkout 前清理您的存储库工作树”

我需要做什么才能在不丢失我自己未提交的更改的情况下获取我同事的文件?

最佳答案

根据我的经验,存储更改的最佳方式如下:

stash

从您的同事那里同步更改,然后像这样进行 stash-pop:

stash pop

您还可以在终端中执行这些操作:

关于git - VS代码 "please clean your repository working tree before checkout",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51817479/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com