I created a repo directly on GitHub using by browser, than using git bash cloned the repo to my machine, I was able to do a test commit with bash using the readme file.
I keep getting fatal: This operation must be run in a work tree when running git --work-tree=yourSrcFolder add .
Was looking here and here for some clue but after 4 hours ready to give up on ever using Git.
--work-tree? If you're not in the repo, you probably need to be adding--git-dirtoo... but this is an unusual way to use git.git addinstead.--work-treelooks like a backwards way of doing things.