GitHub error "Failed to get HEAD"
github, macos
Solution
I had these issues, I followed these steps to resolve.
cd /directory
git init
git add .
git commit -m "Name of Repo"
I then opened the github desktop application and dragged the folder over. All my files are now available and I can make commits. Hope this helps.
Problem
I'm new to GitHub and mainly going to be using it to backup service and to show off code. Anyhow, I'm trying to get my latest program up there and am getting the error in the title of this thread when I try to push. Repro steps: - Sit in Starbucks with crappy wifi (Could this be related to the problem? Serious question.) - Open latest version of GitHub for latest Macintosh operating system - File --> New Repository - Local Path --> the folder that contains my XCode project - Name --> give it a name - Publish - Sync - Push .... Get error - Look in my XCode project's folder and it looks like an empty subfolder with the name of my GitHub project was created there. Huh?