Skip to content

sergech9/practical-work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

GIT шпаргалка

Инициализация репозитория

git init

Добавление файлов

git add

Первый коммит

git commit -m "Initial commit"

История коммитов

git log

Генерация ключа

ssh-keygen -t ed25519 -C "email@example.com"

Просмотр публичного ключа

cat ~/.ssh/id_ed25519.pub

Проверка соединения с GitHub

ssh -T git@github.com

Связь локального и удалённого репозитория (через HTTPS или SSH)

git remote add origin git@github.com:username/repo.git

или

git remote add origin https://github.com/username/repo.git

Отправить изменения

git push -u origin main

Просмотр статуса

git status

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors