I followed the official directions to create a new repo through terminal. Terminal output showed:
Writing objects: 100% (3/3), 228 bytes | 228.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) To https://github.com/Zeesy/lpthw_ex47.git * [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'origin'.
but none of the files showed up in my github browser UI. Refreshing had no result.
I reinitiallized, with no errors.
I edited the README.MD in the browser, and then had my git push rejected. Git pull resulted in:
remote: Enumerating objects: 5, done. remote: Counting objects: 100% (5/5), done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), done. From https://github.com/Zeesy/lpthw_ex47 2c27705..82d4e9e master -> origin/master Updating 2c27705..82d4e9e Fast-forward README.MD | 4 ++++ 1 file changed, 4 insertions(+)
Git checkout showed all of my files. However, none were accessible or visible through the github UI.
git push origin HEAD:master showed Everything up to date. Various searched suggested combinations of reset HEAD master. The files in my local directory have now all been deleted. When I look at the commit history, there are no files accessible there either.
Have I lost my files permanently? What is the correct way to create a repo from a pre-existing local directory?