Discard Untracked Changes

# Introduction <div class="alert alert-warning" role="alert"> <p>🧑‍ðŸ’ŧ New to Git or LabEx? We recommend starting with the <b><a style="color: unset;text-decoration: underline;" href="https://labex.io/courses/quick-start-with-git" target="_blank">Quick Start with Git</a></b> course.</p> </div> When working with Git, it's common to have untracked changes in your working directory. These changes are files that Git is not currently tracking. Sometimes, you may want to discard these changes and start fresh. In this lab, you will learn how to discard all untracked changes to the current branch.

|
60 : 00

Click the virtual machine below to start practicing