Hoan thien core finance v2
This commit is contained in:
87
COMMIT_GUIDE.md
Normal file
87
COMMIT_GUIDE.md
Normal file
@@ -0,0 +1,87 @@
|
||||
# HƯỚNG DẪN COMMIT NHANH
|
||||
|
||||
> Commit toàn bộ thay đổi trước khi chuyển máy
|
||||
> **Ngày:** 24/04/2026
|
||||
|
||||
---
|
||||
|
||||
## Bước 1: Kiểm tra trạng thái
|
||||
|
||||
```bash
|
||||
git status
|
||||
```
|
||||
|
||||
Hiện tại có **26 file thay đổi** chưa commit:
|
||||
- 17 file modified
|
||||
- 9 file untracked (mới)
|
||||
|
||||
## Bước 2: Commit ngay
|
||||
|
||||
```bash
|
||||
git add -A
|
||||
git commit -m "Hoan thien core finance v2 - Fix EditAction, Payment validation, Discount Engine, Dashboard"
|
||||
```
|
||||
|
||||
## Bước 3: Push (nếu cần)
|
||||
|
||||
```bash
|
||||
git push origin main
|
||||
```
|
||||
|
||||
Nếu cần nhập credentials, bạn sẽ tự nhập.
|
||||
|
||||
## Bước 4: Kiểm tra
|
||||
|
||||
```bash
|
||||
git log --oneline -3
|
||||
```
|
||||
|
||||
Đảm bảo commit mới xuất hiện ở đầu.
|
||||
|
||||
---
|
||||
|
||||
## Nếu quên commit trước khi chuyển máy
|
||||
|
||||
Các file thay đổi vẫn nằm trong thư mục git nhưng chưa commit. Khi mở máy mới:
|
||||
|
||||
```bash
|
||||
cd hqland-app
|
||||
git status # Xem danh sách file chưa commit
|
||||
git diff # Xem chi tiết thay đổi
|
||||
```
|
||||
|
||||
Sau đó commit như bình thường.
|
||||
|
||||
---
|
||||
|
||||
## Danh sách file cần commit
|
||||
|
||||
### Sửa đổi:
|
||||
- `AGENTS.md`
|
||||
- `app/Console/Commands/ImportContractsComplex.php`
|
||||
- `app/Filament/Resources/Contracts/ContractResource.php`
|
||||
- `app/Filament/Resources/Contracts/Pages/CreateContract.php`
|
||||
- `app/Filament/Resources/Contracts/Schemas/ContractForm.php`
|
||||
- `app/Filament/Resources/Contracts/Tables/ContractsTable.php`
|
||||
- `app/Filament/Resources/Payments/PaymentResource.php`
|
||||
- `app/Filament/Resources/Payments/Schemas/PaymentForm.php`
|
||||
- `app/Filament/Resources/Payments/Tables/PaymentsTable.php`
|
||||
- `app/Models/Contract.php`
|
||||
- `app/Models/PaymentScheduleItem.php`
|
||||
- `app/Models/User.php`
|
||||
- `app/Providers/Filament/AdminPanelProvider.php`
|
||||
|
||||
### File mới:
|
||||
- `app/Console/Commands/GenerateContractSchedules.php`
|
||||
- `app/Filament/Resources/Appendices/` (folder)
|
||||
- `app/Filament/Resources/PaymentFines/` (folder)
|
||||
- `app/Filament/Resources/Settlements/` (folder)
|
||||
- `app/Filament/Widgets/` (folder)
|
||||
- `app/Services/DiscountEngine.php`
|
||||
- `database/migrations/2026_04_24_083000_add_payment_template_id_to_contracts.php`
|
||||
- `tests/Feature/ContractResourceRenderTest.php`
|
||||
- `NEXT_SESSION.md` (file này)
|
||||
|
||||
---
|
||||
|
||||
*Hãy commit NGAY BÂY GIỜ để đảm bảo không mất công việc!*
|
||||
Reference in New Issue
Block a user