I have a commit in a private Github repo that isn’t in a branch. I can’t get to it locally. I can see it on github dot com /commit/HASH.
You can use the web UI to create new branch pointing to the SHA only if the commit still exists by following these steps:
from the terminal, create a new branch:
git branch <branch-name> <SHA>
git push origin my_new_branch
open the url:
open the branch selector menu using the button labelled
Tree: <SHA>near the top left corner of the page.
type a unique name for your new branch.
press ENTER to create the branch.
I hope this helps!