Xcode 导航器窗格中的箭头表示什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46053717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:12:44  来源:igfitidea点击:

What do the arrows in the navigator pane on Xcode indicate?

xcodexcode9

提问by Dimitrie-Toma Furdui

In earlier versions of Xcode the source control tool would indicate that you have modified a file by showing a bold 'M' to the right of the file name.

在早期版本的 Xcode 中,源代码控制工具会通过在文件名右侧显示粗体“M”来指示您已修改文件。

In Xcode 9 I noticed that some of my files now show either an upward or upward facing arrow. What do they indicate?

在 Xcode 9 中,我注意到我的一些文件现在显示向上或向上的箭头。它们说明什么?

回答by Groot

The arrows that sometimes appear to the right of a file in the navigator is indicating whether you have any files that has not yet been pushed to your remote branch or if you have changes for that file to be pulled from a remote.

有时出现在导航器中文件右侧的箭头表示您是否有任何尚未推送到远程分支的文件,或者您是否对该文件进行了更改以从远程拉取。

The upward pointing arrow indicates you have local changes for that file that have not been pushed to your remote repository.

向上的箭头表示您对该文件的本地更改尚未推送到您的远程存储库。

The downward pointing arrow indicates you have remote changes to that file that you have not fetched yet.

向下的箭头表示您对该文件进行了远程更改,但尚未获取。

The arrows looks like this in Xcode 9.

箭头在 Xcode 9 中看起来像这样。

Indicates that the file have three **local** commits that have not been pushed yet and 2 commits waiting to be fetched from the remote branch

表示该文件有 3 个尚未推送的 **local** 提交和 2 个等待从远程分支获取的提交

回答by axelspark

enter image description here

在此处输入图片说明

I'm assuming you mean the arrows on the left of the text. The down arrow means it is displaying all its contents below. Click it to collapse its contents and it turns to a right arrow. The Mstands for modified since its last source control commit and if you encounter an A, it stands for added.

我假设您指的是文本左侧的箭头。向下箭头表示它正在显示下面的所有内容。单击它以折叠其内容,它会变成一个向右箭头。该M自上次源控制修改代表承诺,如果你遇到一个A,它代表补充说。