Я новичок в Github.
Итак, после обучения, которое я нашел в Интернете, я создал папку, содержащую файлы и подпапки, хранящиеся на Google Диске. Затем я перешел на диск Google с помощью Google Colab и написал следующие коды:
%cd /content/drive/My Drive/blablaProject
!git init
!git config --global user.email "blablabla@protonmail.com"
!git config --global user.name "blabla"
!git add -A
!git commit -m “first commit”
Затем я получил следующую ошибку:
error: pathspec 'commit”' did not match any file(s) known to git.
ОБНОВЛЕНИЕ:
Хорошо, я думаю, что проблема может быть здесь, в фигурных скобках ... Но я сделал кое-что после этого, я запускаю следующие коды:
import os
os.chdir("/content/drive/My Drive/blablaProject")
!git clone https://github.com/blablabla/blabla.git
Так что теперь, после перезапуска сеанса и удаления фигурных скобок и повторного запуска Я получил:
fatal: Unable to create '/content/drive/My Drive/ift6760Project/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.