{"id":27154441,"url":"https://github.com/elenadanchenko/git_lessons","last_synced_at":"2026-05-06T06:35:05.568Z","repository":{"id":231897703,"uuid":"782971697","full_name":"ElenaDanchenko/Git_Lessons","owner":"ElenaDanchenko","description":"Cheat sheet on synchronizing remote and local repositories /// Markdown lang","archived":false,"fork":false,"pushed_at":"2025-03-24T13:08:19.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T14:22:47.441Z","etag":null,"topics":["git","keys","markdown","ssh"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElenaDanchenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T15:15:56.000Z","updated_at":"2025-03-24T13:09:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"a527a634-178a-4f98-bec1-524c3e7d7663","html_url":"https://github.com/ElenaDanchenko/Git_Lessons","commit_stats":null,"previous_names":["helenadan/git_lessons","elenadanchenko/git_lessons"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaDanchenko%2FGit_Lessons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaDanchenko%2FGit_Lessons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaDanchenko%2FGit_Lessons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaDanchenko%2FGit_Lessons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElenaDanchenko","download_url":"https://codeload.github.com/ElenaDanchenko/Git_Lessons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247893565,"owners_count":21013924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","keys","markdown","ssh"],"created_at":"2025-04-08T17:34:36.081Z","updated_at":"2025-10-24T09:50:41.706Z","avatar_url":"https://github.com/ElenaDanchenko.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Шпаргалка по синхронизации удаленного и локального репозиториев\n---\n### Как сгенерировать SSH-ключ\n1. Проверить наличие  \n   $ cd ~ # перешли в домашнюю директорию   \n   $ ls -la .ssh/ # вывели список созданных ключей  \n2. Генерация ключей  \n   $ ssh-keygen -t ed25519 -C \"электронная почта, к которой привязан ваш аккаунт на GitHub\" + дважды кликнуть ENTER, если не нужен пароль  \n   ls -a ~/.ssh # проверка генерации ключей\n### Как связать репозитории\n4. Связать ключ и GitHub  \n   $ clip \u003c ~/.ssh/id_ed25519.pub # скопировать содержимое ключа в буфер обмена\n5. Перейти на GitHub и выбрать пункт Settings-\u003e delayKey -\u003e Title \"Personal Key\" -\u003e Description ^C -\u003e кликнуть галочку!\n6. Проверить правильность ключа -\u003e\u003e\u003e\u003e $ ssh -T git@github.com \u003e\u003e\u003e\u003e\u003e кликнуть yes\n7. Связать репозитории  \n   $ git remote add origin git@github.com:%ИМЯ_АККАУНТА%/first-project.git  \n   $ git remote -v\n### Как синхронизировать данные\n9. Синхронизируем данные  \n   $ git push -u origin main","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenadanchenko%2Fgit_lessons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenadanchenko%2Fgit_lessons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenadanchenko%2Fgit_lessons/lists"}