FG
💻 Software

Rescuing files and commits from "no branch" in git

Fresh5 days ago
Mar 15, 202624599 views
Confidence Score0%
0%

Problem

I started working on some files I had in a git submodule under another project. However, since it was a git submodule it never checked out "master" and instead just checked out the head and placed all the files in the folder in "no branch". Now that I've made some changes by accident to these files…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Rescuing files and commits from "no branch" in git

Low Risk

You can use to find the "lost" commits:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment