gpt4 book ai didi

git - 验证终端中文件的存在

转载 作者:行者123 更新时间:2023-12-04 07:43:15 25 4
gpt4 key购买 nike

我正在从 GitHub 复制一些代码,但是当我尝试访问其中的文件时,终端输出“没有这样的文件或目录”。
我尝试在计算机上手动查找文件,但确实找不到它们。
我的猜测是克隆将代码保存在其他地方,当我尝试更改目录时,它无法访问它,因为它不存在于计算机中。
这是我在终端中看到的:

fun4all@Fun4AllSingularity:~$ git clone https://github.com/sPHENIX-Collaboration/macros.git
Cloning into 'macros'...
remote: Enumerating objects: 8930, done.
remote: Counting objects: 100% (422/422), done.
remote: Compressing objects: 100% (179/179), done.
remote: Total 8930 (delta 278), reused 348 (delta 241), pack-reused 8508
Receiving objects: 100% (8930/8930), 1.84 MiB | 1.72 MiB/s, done.
Resolving deltas: 100% (5193/5193), done.
fun4all@Fun4AllSingularity:~$ cd macros/macros/g4simulations/
bash: cd: macros/macros/g4simulations/: No such file or directory
我不确定它是否重要,但我使用的是虚拟机,它不在我的本地计算机上。
此外,它以前工作过,就在最近它开始出现这个问题。

最佳答案

g4simulation此存储库中不再存在目录。它于 1 月在 commit 0c6692376c9920588290121ed0174ddeda102e22 中被删除.
大概不再需要它,因为提交的标题是:

ditch obsolete g4simulation directory

关于git - 验证终端中文件的存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67336759/

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