Unity GitHub冲突DWLT文件

发布于 2025-02-13 06:17:25 字数 491 浏览 1 评论 0原文

我们与我的朋友开发一些游戏,并与Github共享代码和场景。一切都很好,但是在一个提交之后(我添加了一些新的工作脚本并从项目中删除了一些垃圾),他与此DWLT文件有冲突(如屏幕截图1中的1),但是我有一切正常(如ScreenShot 2)。更改工作正常,但我们在这里有奇怪的冲突。有人可以帮助PLZ吗?

We develop some game with my friend and sharing code and scenes with GitHub. Everything was fine but after one commit (where I add some new working script and deleted some trash from project) he has a conflict with this dwlt file (as in screenshot 1), but I have everything okay (as in screenshot 2). Project with changes working fine but we have strange conflict here. Can anybody help plz?

Screenshot from friend's Github Desktop
Screenshot from my Github Desktop with trouble commit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一枫情书 2025-02-20 06:17:25

您在此 unity thread with:

  • putting [uu] ser [ss] ettings/ in .gitignore
  • git rm-加入-R userettings/

只会删除该最新提交的文件夹内容。

You have the same user case illustrated in this Unity thread with:

  • putting [Uu]ser[Ss]ettings/ in .gitignore
  • git rm --cached -r UserSettings/

That will only remove that folder content from the most recent commit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文