wakadakawaka 5816aa686f add pages
2025-04-15 00:28:08 +05:00

50 lines
1019 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Создание нового проекта с нуля
---
Пример: вы хотите создать новый проект и загрузить его на GitHub или Gitea.
### Шаги:
1. Создайте папку проекта:
```bash
mkdir my-new-project
cd my-new-project
```
2. Инициализируйте Git-репозиторий:
```bash
git init
```
3. Создайте файл, например `README.md`:
```bash
echo "# My New Project" > README.md
```
4. Добавьте и зафиксируйте изменения:
```bash
git add .
git commit -m "Первый коммит"
```
5. Создайте репозиторий на GitHub или Gitea вручную.
6. Подключите удалённый репозиторий:
```bash
git remote add origin https://git.sinenikolsky.ru/username/my-new-project.git
```
7. Отправьте изменения:
```bash
git push -u origin main
```
Готово! Проект опубликован.