gpt4 book ai didi

ios - 即使在提交所有更改并重新打开 Xcode 后,Git 也会显示未提交的更改 - Git Tower

转载 作者:行者123 更新时间:2023-11-29 05:21:09 27 4
gpt4 key购买 nike

我有一个 Xcode 项目,正在使用 Git (Git Tower)作为我的版本控制,我的问题是 Git Tower即使在提交所有更改、关闭 Xcode 项目并重新打开它之后,也会显示未提交的更改。

换句话说,如果我通过提交所有更改来清理暂存区域,则关闭 Xcode project ;此时,没有任何变化,暂存区域已清理干净,但是一旦我重新打开 Xcode project , Git Tower显示一些未提交的更改.storyboard文件无需我对 View 执行任何操作。

知道为什么Git显示某些 .storyboard 的未提交更改没有我修改任何内容的文件,什么在 Xcode 中生成这些更改?

例如,这些更改在提交所有更改并在 Xcode 中重新打开项目后显示。

enter image description here

编辑:

我的主要问题是,为什么我在没有修改任何内容的情况下看到了未提交的更改,是什么在 Xcode 中生成了这些更改?

最佳答案

您可能希望将该文件标记为“假设未更改”。

您可以在 Tower 帮助指南中找到更多相关信息:

There might be cases when you want to modify a file but not have these modifications committed to the repository. And, since this file might be already tracked, you cannot or don't want to ignore it. This is when Git's "assume-unchanged" flag comes in handy. You can mark a file with this flag and thereby have Git ignore local changes for it.

In Tower, you can achieve this by right-clicking the file and selecting Set Assume-Unchanged from the Mark submenu.

有关忽略文件和将其标记为“假设未更改”之间差异的更多信息,请参阅我们的帮助:https://www.git-tower.com/help/mac/working-copy/ignore-files

关于ios - 即使在提交所有更改并重新打开 Xcode 后,Git 也会显示未提交的更改 - Git Tower,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58679927/

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