MulaiMulai sekarang secara gratis

Undoing a commit

You've just made an update to the analyze_data function and committed the change in the flight data pipeline project. You want to undo this change, but you want keep both your current changes in your working directory and in your committed changes that are currently in staging.

Latihan ini adalah bagian dari kursus

Advanced Git

Lihat Kursus

Petunjuk latihan

  • Write the git command to move HEAD back one commit using git reset.
  • You must ensure that your current work and commit changes remains unchanged by using a soft reset.

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga