how to use git checkout


git checkout fileName

Lấy file trong index để copy vào working place, nhưng vẫn giữ file trong index, lệnh này khác lệnh

git reset filename
vì reset sẽ move file từ index về working



git checkout HEAD fileName

Lấy file trong commited để copy vào working place, và xóa trong index những thay đổi của file đó

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch