Git command

Export 1 số file giữa 2 lần commit git diff –name-only -z –diff-filter=ACMRT release..HEAD | xargs -0 git archive -o update.tar.gz HEAD — VD: git diff –name-only -z –diff-filter=ACMRT 9fd850dcccb95f6f42a13c59efc000a42b11686b..e8fb602ae3b5e74cbf7cdfe5b6abff597f1e7729 | xargs -0 git archive -o update.tar.gz HEAD —   Tạo một repository mới Để tạo 1 repository mới, bạn hãy mở cửa sổ lệnh […]

Đọc thêm

Sử dụng SSH key trong gitlab

Các lệnh này hoạt động với linux/macos hoặc bash shell của win Để sử dụng ssh thay vì mật khẩu cho git thì làm các bước sau 1.ssh-keygen  Tạo ssh key ở máy tính cá nhân, đặt tên file ở bước đầu tiên, nó sẽ tạo ra 2 file <tenfile> và <tenfile>.pub lấy nội dung […]

Đọc thêm