Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия |
it:github [2022/01/08 10:59] – [github] ura2404 | it:github [2024/03/21 05:43] (текущий) – ura2404 |
---|
| |
[[https://github.com]]\\ | [[https://github.com]]\\ |
[[https://git-scm.com/book/ru/v2]] {{it:progit_v2.1.67.pdf}} - книга | [[https://git-scm.com/book/ru/v2]] {{it:progit_v2.1.67.pdf}} - книга\\ |
| |
| [[https://gitexplorer.com/]] - on-line подсказки\\ |
| |
| [[http://lib.custis.ru/Линус_Торвальдс_о_GIT_на_Google_Talks]] – Линус Торвальдс про git\\ |
| |
| |
| [[https://maxsite.org/page/how-to-put-your-project-on-github-com]] - Как выложить свой проект на GitHub.com\\ |
| [[https://maxsite.org/page/github-private]] - Приватные репозитории GitHub для работы с клиентами\\ |
| [[https://www.atlassian.com/git/tutorials/saving-changes/gitignore]] - про .gitignore\\ |
| [[https://tyapk.ru/blog/post/gitignore]] - О файле .gitignore\\ |
| [[https://git-scm.com/book/ru/v2/Appendix-C%3A-Команды-Git-Совместная-работа-и-обновление-проектов]] - Совместная работа и обновление проектов\\ |
| [[https://git-scm.com/book/ru/v2/Основы-Git-Запись-изменений-в-репозиторий]] - Запись изменений в репозиторий\\ |
| [[https://youtu.be/zZBiln_2FhM]] - Git и GitHub Курс Для Новичков (Владилен Минин)\\ |
| [[https://youtu.be/SEvR78OhGtw]] - Git. Большой практический выпуск |
| |
| [[https://youtu.be/VJm_AjiTEEc?si=tApSTsXTit1o7pQM]] - Vlad Mishustin: Что такое Git для Начинающих / GitHub за 30 минут / Git Уроки\\ |
| [[https://youtu.be/F7FnnfnB9YY?si=aoFeHqQXTOUXdhts]] - Vlad Mishustin: Конфликты для Начинающих / Git Cherry Pick, Git Revert, Git Reset\\ |
| |
| [[https://www.youtube.com/playlist?list=PL0k-9Y7O1GweYJHN0QfrW2rUjWxrszsg_]] - Front-end Science із Сергієм Пузанковим |
| |
| [[https://youtu.be/dpgaygx46Go]] - Куда уходить с GitHub?\\ |
| |
---- | ---- |
| |
клонировать\\ | [[it:github:faq|FAQ]] |
>$ git clone https://github.com/<USER>/<PROJECT>.git | |
| |
клонировать в текущую папку\\ | [[it:github:ssh|Авторизация по ключам ssh]]\\ |
>$ git clone https://github.com/<USER>/<PROJECT>.git . | [[it:github:ssl|SSL]]\\ |
| |
проверить статус\\ | |
>$ git status | |
| |
посмотреть изменения\\ | [[it:github:branch|Ветки]]\\ |
>$ git diff | [[it:github:tag|Теги]]\\ |
| |
| |
| ---- |
| |
| |
| __**Создать локальный проект и залить на github**__ |
| <code bash> |
| $ mkdir project |
| $ cd project |
| $ git init |
| $ git remote add origin https://github.com/ura2404/project.git |
| $ git push -u origin master |
| </code> |
| ---- |
| |
| __**клонировать**__ |
| <code> |
| $ git clone https://github.com/<USER>/<PROJECT>.git |
| $ git clone https://github.com/<USER>/<PROJECT>.git . # в текущую папку |
| </code> |
| ---- |
| |
| |
>$ gir push --tags | >$ gir push --tags |
| |
восстановить после случайного удаления | |
>$ git reset --hard | |
| |
удалить файл из индекса | |
>$ git rm <file> | |
| |
---- | ---- |
| |
__**Proxy**__\\ | |
>$ git config %%--global%% http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port | |
| |
---- | |
| |
__**Для больших файлов**__ | __**Для больших файлов**__ |
__**subtree**__\\ | __**subtree**__\\ |
[[https://www.atlassian.com/git/tutorials/git-subtree]]\\ | [[https://www.atlassian.com/git/tutorials/git-subtree]]\\ |
---- | |
| |
[[https://maxsite.org/page/how-to-put-your-project-on-github-com]] - Как выложить свой проект на GitHub.com\\ | |
[[https://maxsite.org/page/github-private]] - Приватные репозитории GitHub для работы с клиентами\\ | |
[[https://www.atlassian.com/git/tutorials/saving-changes/gitignore]] - про .gitignore\\ | |
[[https://tyapk.ru/blog/post/gitignore]] - О файле .gitignore\\ | |
[[https://git-scm.com/book/ru/v2/Appendix-C%3A-Команды-Git-Совместная-работа-и-обновление-проектов]] - Совместная работа и обновление проектов\\ | |
[[https://git-scm.com/book/ru/v2/Основы-Git-Запись-изменений-в-репозиторий]] - Запись изменений в репозиторий | |
| |
---- | ---- |
| |
---- | ---- |
| |
===== Решения ===== | |
| |
[[https://dev-tips.ru/blog/post/oshibka-the-remote-end-hung-up-unexpectedly|Ошибка fatal: The remote end hung up unexpectedly при выполнении git push]] {{it:github:oshibka_fatal-_the_remote_end_hung_up_unexpectedly_pri_vypolnenii_git_push.mhtml|mht}} | |
<code bash> | |
git config http.postBuffer 262144000 | |
// или | |
git config --global http.postBuffer 262144000 | |
</code> | |