git reset --hard <branch_name>
📦 GitHub
✨ The Prompt Phrase
What Git command completely discards all uncommitted changes in your working directory and staging area, resetting everything back to the state of a specific commit or branch? ~git reset --hard~ <branch_name>
💻 Code Preview
📦 All-in-One Code
<div style="position:fixed;top:0px;left:0px;right:0px;bottom:0px;"><div data-zite-id="ob6gxumoo7" data-zite-embed-type="fullscreen" style="width:100%;height:100%;" data-zite-inherit-parameters ></div><script src="https://server.fillout.com/embed/v2-zite/"></script></div>
Live Preview