Restore discarded commits #138671
Replies: 2 comments
-
Try using "git reflog" to see if it is recorded in your history. If it is then select the commit you want to restore by typing the command line below. git checkout main |
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
There is a github repo A which was forked from my repo B. Both are public repos. Repo A had 14 commits changes which I wanted to merge with mine. but i mistakenly clicked on discard button and all commits are deleted. is there a way to restore 14 commits back?
Beta Was this translation helpful? Give feedback.
All reactions