Posts

Showing posts with the label git checkout

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 đó