Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавил инструкцию Markdown #384

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 67e27.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions instruction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Инструкция для работы в Git и удаленными репозиториями.
## Что такое Git?
```sh
Git - самая популярная система контроля
версий. Программа Git позволяет переключаться между
ними.
```
## Команды Git
```sh
git --version
```
Команда просмотра текущей версии Git

```sh
git init
```

Инициализация папки в которой будут отслеживаться изменения
```sh
git status
```

показывает текущее состояние гита, еслть ли изменения, которые нужно закоммитить (сохранить)
```sh
git add
```
Добавляет содержимое рабочего каталога в индекс для последующего коммита
```sh
git commit -m
```

Зафисксировать или сохранить
```sh
git log
```
Журнал изменений
```sh
git log --oneline
```
Журнал изменений в свернутом варианте

```sh
git log --graph
```
Отображение в графическом виде

```sh
git checkout
```
Переключение между версиями
```sh
git diff
```
Показывает разницу между текущим файлом и сохраненным

```sh
git branch
```
Просмотр веток

```sh
git branch new_name
```
Создание новой ветки

```sh
git checkout
```
переключение между ветками

```sh
git merge
```
Объединение веток

```sh
git -d <Имя ветки>
```
Удаление веток

## Работа с картинками

Попугай
![попугай](67e27.jpg)


## Как сделать pull request

1. Делаем **fork** репозитория
2. Делаем *clone** СВОЕЙ версии репозитория
3. Создаем новую ветку и в НЕЕ вносим свои изменения
4. Фиксируем изменения (делаем коммиты)
5. Отправляем свою версию в свой GitHub
6. На сайте GitHub нажимаем кнопку **pull request**