dev-resources.site
for different kinds of informations.
How To Remove The Uncommitted Changes in Git
Published at
6/21/2022
Categories
git
Author
Rabeeh Ebrahim
Categories
1 categories in total
git
open
Have you ever changed your mind and tried to remove the uncommitted changes? I stuck at once. Doing basic things in git is easy-peasy, like live hosting, committing, pushing…etc. but when you do advanced stuff. You will be in a pickle soon.
Maybe, I am a beginner at using git at that time. Though it’s easy to remove the uncommitted changes. All you have to do is:
git reset --hard [commit id]
Actually, you don’t need that commit id (to do on the current branch). You can do without that. The recent uncommitted codes will be removed from your git folder and become as fresh as your last commit.
Articles
9 articles in total
Google Authentication in MERN Stack
read article
Demystifying HTTP Status Codes: Essential Knowledge for Node.js Newbies
read article
Deploy Your Nodejs app on Render.com
read article
How I Get Into The Open-Source World
read article
How to Deploy a React App
read article
Mom in Tech (MongoDB Atlas Hackathon 2022 on DEV)
read article
Is it okay to post every (programming related) medium blogs to dev.to?
read article
How To Remove The Uncommitted Changes in Git
currently reading
How to Kill a Local Host in Linux
read article
Featured ones: