git

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

git

Сообщение ya »

Установите Git с официального сайта: https://git-scm.com/
Настройте Git, указав свое имя и адрес электронной почты:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
Выполните следующие команды в терминале для создания нового репозитория и коммита вашего кода:
cd path/to/your/source/code
git init
git add .
git commit -m "Initial commit"


git push --all

Код: Выделить всё

fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

Код: Выделить всё

git remote add origin https://github.com/hardprivate/ffmpeg_encoder_automate.git
git branch -M main
git remote set-url origin https://hardprivate:token@github.com/hardprivate/ffmpeg_encoder_automate.git
git push -u origin main
Ответить