git init后,又报这个错了
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local_rank: 0 (pid: 7527) of binary: /home/chenjia123/anaconda3/envs/Codetr/bin/python
Traceback (most recent call last):
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/launch.py", line 193, in
main()
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/run.py", line 715, in run
elastic_launch(
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/chenjia123/anaconda3/envs/Codetr/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 245, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
fatal: not a git repository (or any of the parent directories): .git,怎么解决?