Next.js starter your AI actually understands. Ship internal tools in days not weeks. Pre-order $199 $499 → [Get it now]

How to soft reset in Git

Soft reset in Git undoes commits while preserving all changes in the staging area, allowing you to recommit with better organization, improved commit messages, or different file groupings. As the creator of CoreUI, a widely used open-source UI library, I’ve used git reset –soft countless times across development workflows to reorganize commits, improve commit messages, and prepare cleaner history before sharing with the team. From my expertise, the most effective approach is using git reset –soft to move the branch pointer back while keeping all changes ready for immediate recommitting. This method provides safe commit reorganization with preserved work and flexible recommitting options.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.
What are the three dots `...` in JavaScript do?
What are the three dots `...` in JavaScript do?

How to loop through an array in JavaScript
How to loop through an array in JavaScript

How to Center a Button in CSS
How to Center a Button in CSS

Open Source vs Commercial Admin Templates: Which Should You Choose in 2026?
Open Source vs Commercial Admin Templates: Which Should You Choose in 2026?

Answers by CoreUI Core Team