- Cài GIT SCM
-
Tạo trực tiếp trên github thì sau khi tạo xong thì chạy lệnh
Ví dụ Repo có link HTTP là:
https://github.com/tongvanduc/fpoly-base-web3014.gitLệnh:
git clone https://github.com/tongvanduc/fpoly-base-web3014.git -
Project có sẵn trên máy thì chạy tập lệnh sau:
Ví dụ Repo có link HTTP là:
https://github.com/tongvanduc/fpoly-base-web3014.gitgit init git add . git commit -m "first commit" git branch -M main git remote add origin https://github.com/tongvanduc/fpoly-base-web3014.git git push -u origin mainNếu chạy lệnh
git push -u origin mainmà thấy xuất hiện dònggit push --set-upstream ....thì các em cần copy cái lệnh set-upstream đó để chạy. Vì lần đầu push code lên Repo nó hay như vậy.
-
Sau khi hoàn thành bước
Tạo 1 kho lưu trữ mớithì các bạn tiến hành đẩy code lên khi có thay đổi (Thêm/Sửa/Xóa file) -
Chạy tập lệnh sau:
git add . git commit -m "Mô tả thay đổi vào đây" git push
-
Khái niệm
- Là thằng để quản lý các file KHÔNG ĐẨY LÊN GIT
- Trong 1 project có thể có nhiều file
.gitignore
-
Trường hợp dự án đặt folder
vendortrong .gitignore- Khi clone code từ git về thì
cdvào trong thư mục dự án. - Chạy lệnh
composer updateorcomposer install
- Khi clone code từ git về thì
-
Model: https://github.com/doctrine/dbal/
3.1. Lệnh cài: composer require doctrine/dbal
3.2. Tài liệu sử dụng: https://www.doctrine-project.org/projects/doctrine-dbal/en/4.0/reference/introduction.html
-
Validate: https://github.com/rakit/validation
-
.htaccess:
RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]