Tôi đã tạo ra một kho lưu trữ trần từ xa:Không thể chdir hoặc không phải là một kho lưu trữ Git
cd ~ mkdir -p git/foto-fiori.git cd git/foto-fiori.git git init --bare
Sau đó, tôi đã thêm nó:
git remote add origin [email protected]:/home/collimarco/git/foto-fiori.git
tôi nhận được:
$ git push fatal: '/home/collimarco/git/foto-fiori.git': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly
Tôi cũng đã cố gắng sử dụng ~/git/foto-fiori.git nhưng cũng giống nhau ...
Tôi tuyệt vọng: tôi nên cố gắng làm gì?
Tôi đã xóa cấu hình cũ và nhập git remote add origin [email protected]: git/foto-fiori.git Nhưng tôi vẫn nhận được lỗi đó :( – collimarco