Macos 用于Mac的GitHub-添加文件

Macos 用于Mac的GitHub-添加文件,macos,github,Macos,Github,我的提交生成以下错误: # Untracked files: # (use "git add <file>..." to include in what will be committed) # # "Icon\r" no changes added to commit (use "git add" and/or "git commit -a") #未跟踪的文件: #(使用“git add…”包含在将提交的内容中) # #“图标\r” 未向提交添加任何更改(使用“git a

我的提交生成以下错误:

# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   "Icon\r"
no changes added to commit (use "git add" and/or "git commit -a")
#未跟踪的文件:
#(使用“git add…”包含在将提交的内容中)
#
#“图标\r”
未向提交添加任何更改(使用“git add”和/或“git commit-a”)

我找不到图标,在终端中键入“git add Icon\r”失败。为什么会这样?有没有办法从GitHub for Mac GUI中将此文件添加到源代码管理中?

您是否尝试过在git存储库的目录中使用“git add*”?这会将所有未添加的文件添加到存储库中。之后,您可以进行提交。

没问题。很高兴我能帮上忙。