Quay lại Roadmap/Git Github Roadmap/
Đang tải...
Hướng dẫn thử thách
1 / 155

--hard

### Giai đoạn: Nền Tảng & Khái Niệm Cốt Lõi **--hard** `git reset --hard` moves the branch pointer to a specified commit and resets both the staging area and working directory to match it exactly. Any changes in commits after that point, as well as any uncommitted work, get permanently discarded. This is one of the more destructive Git commands, so it should be used carefully since undone changes can be difficult to recover. ### Khái niệm cốt lõi: 1. **Any changes in commits after that point, as well as any uncommitted work, get permanently discarded** ### Tài liệu tham khảo chính thống: - [--hard documentation](https://git-scm.com/docs/git-reset#Documentation/git-reset.txt---hard) (official)
Nhiệm vụ của bạn
Viết giải pháp của bạn cho bài học **--hard** vào trình soạn thảo bên cạnh. Bấm **Chạy Thử Nghiệm** (hoặc nhấn `Ctrl+Enter`) để thực thi và ghi nhận hoàn thành kỹ năng trên Roadmap. ### Kỹ năng cần đạt: - `--hard` - `Core` - `Engineering`
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.