it:github
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
it:github [2021/08/03 11:47] – ura2404 | it:github [2024/03/21 05:43] (текущий) – ura2404 | ||
---|---|---|---|
Строка 2: | Строка 2: | ||
[[https:// | [[https:// | ||
- | [[https:// | + | [[https:// |
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
---- | ---- | ||
- | клонировать\\ | + | [[it:github:faq|FAQ]] |
- | >$ git clone https://github.com/< | + | |
- | клонировать в текущую папку\\ | + | [[it: |
- | >$ git clone https://github.com/< | + | [[it:github: |
- | проверить статус\\ | ||
- | >$ git status | ||
- | посмотреть изменения\\ | + | [[it: |
- | >$ git diff | + | [[it: |
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | __**Создать локальный проект и залить на github**__ | ||
+ | <code bash> | ||
+ | $ mkdir project | ||
+ | $ cd project | ||
+ | $ git init | ||
+ | $ git remote add origin https:// | ||
+ | $ git push -u origin master | ||
+ | </ | ||
+ | ---- | ||
+ | |||
+ | __**клонировать**__ | ||
+ | < | ||
+ | $ git clone https:// | ||
+ | $ git clone https:// | ||
+ | </ | ||
+ | ---- | ||
Строка 27: | Строка 65: | ||
>$ gir push --tags | >$ gir push --tags | ||
- | восстановить после случайного удаления | ||
- | >$ git reset --hard | ||
- | удалить файл из индекса | ||
- | >$ git rm < | ||
---- | ---- | ||
- | __**Proxy**__\\ | ||
- | >$ git config --global http.proxy http:// | ||
- | |||
- | ---- | ||
__**Для больших файлов**__ | __**Для больших файлов**__ | ||
Строка 67: | Строка 97: | ||
---- | ---- | ||
- | [[https:// | + | __**Отключение авторизации по паролю**__\\ |
- | [[https:// | + | > remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. |
- | [[https:// | + | > remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. |
- | [[https://tyapk.ru/ | + | |
- | [[https://git-scm.com/book/ | + | |
- | [[https://git-scm.com/ | + | |
+ | нужно сгенерировать токен, который будет вместо пароля\\ | ||
+ | [[https:// | ||
---- | ---- | ||
- | ===== Решения ===== | ||
- | [[https:// | ||
- | <code bash> | ||
- | git config http.postBuffer 262144000 | ||
- | // или | ||
- | git config --global http.postBuffer 262144000 | ||
- | </ |
it/github.txt · Последнее изменение: 2024/03/21 05:43 — ura2404