BREAKING:
Từ máy tính của bạn (Windows dùng PuTTY hoặc Git Bash / macOS & Linux dùng Terminal):
ssh your-username@your-domain.com
Hoặc từ Hostinger hPanel → Advanced → SSH Access → dùng Terminal online.
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"
Sau đó bạn sẽ có file:
~/.ssh/id_rsa – private key~/.ssh/id_rsa.pub – public keycat ~/.ssh/id_rsa.pubssh -T git@bitbucket.org
Kết quả thành công sẽ là:
logged in as titach-admin.
cd ~/public_html
git clone git@bitbucket.org:your-username/your-repo-name.git
Ví dụ:
git clone git@bitbucket.org:titach-admin/html-landing-page.git
public_htmlNếu sau khi clone bạn có cấu trúc như sau:
public_html/
└── html-landing-page/
├── index.html
└── assets/
Bạn có thể move ra ngoài:
mv html-landing-page/* html-landing-page/.* .
rmdir html-landing-page
⚠️ Dòng trên sẽ move cả file ẩn (
.htaccess), nhưng tránh move.và.., nếu cần thì dùng lệnh sau an toàn hơn:
shopt -s dotglob
mv html-landing-page/* .
rmdir html-landing-page
shopt -u dotglob
Truy cập https://your-domain.com để kiểm tra website đã hiển thị đúng chưa.