1

我们的一位贡献者在使用 GitHub 桌面时遇到了问题。当他们尝试推送他们最近的更改时,会出现以下错误

On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced).meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/DoorCloseHardWood_S011FO._1.wav
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/DoorCloseHardWood_S011FO._1.wav.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/DoorOpenLatch_S08FO.878.wav
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/DoorOpenLatch_S08FO.878.wav.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Footstep_temp.mp3
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Footstep_temp.mp3.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Mosnter voice in apartment .wav
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Mosnter voice in apartment .wav.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Possible Track.mp3
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Possible Track.mp3.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Talking behind door .wav
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Talking behind door .wav.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Wood Door Knock.mp3
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/Wood Door Knock.mp3.meta
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/ambience 1 Nick .wav
    deleted:    Assets/Audio/Temporary Audio Files (Delete these and this folder when replaced)/ambience 1 Nick .wav.meta
    modified:   Assets/Scenes/mirror level first draft.unity

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    Assets/Audio/Placeholder Audio.meta
    Assets/Audio/Placeholder Audio/

no changes added to commit (use "git add" and/or "git commit -a")

我们尝试使用 add 命令,以及 add -A 和 git commit -a 都没有成功。

在使用上述任何命令“成功”添加文件后,当我们尝试通过命令行推送时,我们会被告知文件已经是最新的。

还有一点需要注意的是,在 GitHub 桌面中,用户现在会在 fetch 按钮下看到“Origin never fetched”,即使他们在此问题开始发生之前已经完成了 fetch 和 pull。

除了我们尝试的命令行命令外,我们还重新安装了 GitHub 桌面,注销/回到 GitHub 桌面,并删除并重新添加了用户作为贡献者。

在今天之前,该用户通过 GitHub 桌面推送/提交没有问题。

4

0 回答 0