How to delete a local commit that is not remote yet but already commited? #46555
Replies: 2 comments
-
Try this:
|
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
confused how to do this.
my vs code is telling me to sync changes and swap to latest commit because i changed the message using the
git commit --amend -m 'new message'
command -- but now i just want to delete it and now switch it.it's the latest commit, but can't push anything else until i get rid of it.
any way to delete it by commit hash?
Beta Was this translation helpful? Give feedback.
All reactions