or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Введение в Git и GitHub
Git — распределённая система контроля версий, которая даёт возможность разработчикам отслеживать изменения в файлах и работать совместно с другими разработчиками
Подробнее о git
Установка и настройка git
Установка Git:
Linux:
Mac:
Windows: https://git-scm.com/download/win
Первичная настройка Git
Инициализация репозитория
Работа с Git
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Текущий статус репозитория
Staging
Staging — это совокупность файлов, которые будут добавлены в следующий коммит
Добавить один файл
Добавить все файлы
Файл .gitignore
Как только в репозиторий был добавлен файл .gitignore, файлы, которые указаны в нём, стали игнорироваться.
Зафиксировать изменения (коммит)
Ветвление в git
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →link - git-branching-tutorial
Посмотреть список всех ветвей:
Создать новую ветвь:
Переключиться на другую ветвь:
Слияние branch-name ветки с текущей веткой:
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Удаленный репозиторий
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Зарегистрироваться
Настроить аутентификация на GitHub по ключам SSH (опционально) link
Создание нового репозитория
Клонирование репозитория с GitHub
Предыдущая команда не просто скопировала репозиторий чтобы использовать его локально, но и настроила соответствующим образом Git:
Подключение существующего репозитория
Отправим наши файлы на гитхаб
Последовательность работы
Синхронизация локального репозитория с удалённым
Как сделать pull request на github
Создание ответвлений (fork)
Вам необходимо найти проект на github, в который вы хотите внести вклад. Затем уже на странице с ним нажать на кнопку Fork.
Pull Request — это запрос на вливание изменений из вашей ветки в основную ветку исходного репозитория
Thank you!