Following commit, Github shows: "This commit does not belong to any branch on this repository."
The changes were committed, but not belonging to any branch, per Github's message:
This commit does not belong to any branch on this repository.
Now I have two commits, neither belong to a branch.
Has anyone seen this before?
Anyone know why or how this happens?
Or how to resolve it?
Many thanks in advance!
So you have been using the UI? The UI is really bad in my opinion, you should have more lower-level access to git.
git add . git commit -m "[what you did]" git push -u origin master
You will be prompted to log in along the way, don't worry -- nobody can see it!
@Coder100 Ha, I expected the UI to work. My bad :P
This is really helpful! Although it didn't work, the CLI is giving me useful errors that I can investigate.
Here's what I got:
Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 14.55 KiB | 0 bytes/s, done. Total 5 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. remote: error: GH007: Your push would publish a private email address. remote: You can make your email public or disable this protection by visiting: remote: http://github.com/settings/emails To https://github.com/ceilingrat/web-speech-api ! [remote rejected] master -> master (push declined due to email privacy restrictions) error: failed to push some refs to 'https://github.com/ceilingrat/web-speech-api'
I plan to investigate the settings at Github and try again, and I'll report back on the progress.
(I'm taking a lot of notes here in case anyone else has the same trouble.)
Although I tried changing the email that gets transmitted to Github, I had a number of problems:
New email address is only sent from the git CLI. Changes made in the git CLI don't seem to change the email address sent from the version control UI.
Even with a different email, Github was still rejecting my commits until I disabled the setting called Block command line pushes that expose my email.
Although I was able to finally push commits to the master branch again, master is now showing my earliest attempted commit with the email address that I wanted hidden. I don't expect a lot of trouble from having that exposed temporarily, but I want to do some custodial work to scrub that stuff off my Github repos.