【发布时间】:2021-10-13 20:30:37
【问题描述】:
我已经在我的 mac 上添加了一个文件夹到 GitHub 文件夹存储库,现在我在提交时遇到了问题。
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: iOS-Dev-2.0/Xcodes Tutorial/.DS_Store
modified: iOS-Dev-2.0/Xcodes Tutorial/first-full-app-window-shopper-source (modified content, untracked content)
modified: iOS-Dev-2.0/Xcodes/Test01/Test_01 (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
我首先通过终端尝试了一些东西
cd iOS-Courses - 这是存放 iOS-Dev-2.0 的目录
git add *
git push origin master
【问题讨论】:
-
你有什么问题?
-
这能回答你的问题吗? Why does 'git commit' not save my changes?