Update README.md

This commit is contained in:
thanhtl 2026-04-09 01:29:22 +07:00
parent ef310980eb
commit d23754990b

View File

@ -352,7 +352,7 @@ Nếu token hiện tại đã từng bị dán công khai, nên tạo token mớ
------ ------
## Tóm tắt ngắn gọn ## FIX POSSIBLE Issues
Bạn cần làm đúng 5 việc: Bạn cần làm đúng 5 việc:
@ -367,6 +367,40 @@ Sau khi xong, mỗi lần dán ảnh vào Typora:
- ảnh sẽ được copy vào repo local - ảnh sẽ được copy vào repo local
- git tự commit + push lên Gitea - git tự commit + push lên Gitea
- Typora tự thay bằng URL ảnh raw - Typora tự thay bằng URL ảnh raw
-------
## Issues → Solutions (compact)
Nếu bạn muốn, tôi có thể viết tiếp cho bạn bản **đã điền sẵn toàn bộ path theo đúng máy Mac của bạn**, chỉ để copy-paste chạy luôn. 1. **No upstream (tracking) branch**
>>>>>>> 8b6d60f7e6de67ba718050142d1fa32b2cbfdf8f
```bash
git branch -u origin/main
```
2. **Wrong pull syntax**
```bash
git pull origin main
```
3. **Divergent branches (no strategy set)**
```bash
git config pull.rebase false
```
4. **Unrelated histories**
```bash
git pull origin main --allow-unrelated-histories
```
---
## Final working sequence
```bash
git branch -u origin/main
git config pull.rebase false
git pull origin main --allow-unrelated-histories
git push
```