Files
microdao-daarion/GIT_SETUP.md
Apple c552199eed chore: organize documentation structure for monorepo
- Create /docs structure (microdao, daarion, agents)
- Organize 61 cursor technical docs
- Add README files for each category
- Copy key documents to public categories
- Add GitHub setup instructions and scripts
2025-11-15 04:08:35 -08:00

109 lines
2.9 KiB
Markdown
Raw Permalink 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.
# Налаштування Git для MicroDAO
## ✅ Що вже зроблено
- ✅ Git репозиторій ініціалізовано
-`.gitignore` створено
- ✅ Перший коміт зроблено (58 файлів)
## 📤 Підключення до віддаленого репозиторію
### Варіант 1: GitHub
1. Створіть новий репозиторій на GitHub (https://github.com/new)
- Назва: `microdao-mvp` (або інша)
- Тип: Private або Public
- НЕ створюйте README, .gitignore або license (вони вже є)
2. Підключіть віддалений репозиторій:
```bash
cd "/Users/apple/Desktop/MicroDAO/MicroDAO 3"
# Додайте віддалений репозиторій (замініть YOUR_USERNAME та REPO_NAME)
git remote add origin https://github.com/YOUR_USERNAME/REPO_NAME.git
# Або через SSH (якщо налаштовано):
# git remote add origin git@github.com:YOUR_USERNAME/REPO_NAME.git
# Перевірте підключення:
git remote -v
# Відправте код:
git push -u origin main
```
### Варіант 2: GitLab
```bash
cd "/Users/apple/Desktop/MicroDAO/MicroDAO 3"
git remote add origin https://gitlab.com/YOUR_USERNAME/REPO_NAME.git
git push -u origin main
```
### Варіант 3: Інший Git сервер
```bash
cd "/Users/apple/Desktop/MicroDAO/MicroDAO 3"
git remote add origin YOUR_GIT_URL
git push -u origin main
```
## 🔐 Автентифікація
### Для HTTPS:
- GitHub: використовуйте Personal Access Token замість пароля
- GitLab: використовуйте Personal Access Token
### Для SSH:
Переконайтеся, що ваш SSH ключ додано до GitHub/GitLab:
```bash
# Перевірка SSH ключа
ssh -T git@github.com
# або
ssh -T git@gitlab.com
```
## 📝 Налаштування Git (якщо потрібно)
```bash
# Встановіть ваше ім'я та email
git config --global user.name "Ваше Ім'я"
git config --global user.email "your.email@example.com"
```
## 🔄 Подальші коміти
Після підключення до віддаленого репозиторію:
```bash
# Додати зміни
git add .
# Зробити коміт
git commit -m "Опис змін"
# Відправити на сервер
git push
```
## 📊 Перевірка статусу
```bash
# Статус репозиторію
git status
# Історія комітів
git log --oneline
# Віддалені репозиторії
git remote -v
```
---
**Примітка:** Я не можу виконувати `git push` безпосередньо, оскільки для цього потрібна ваша автентифікація. Виконайте команди вище вручну після створення репозиторію на GitHub/GitLab.