Recently I\'ve been unable to clone or push to github, and I\'m trying to find the root cause.
This is on windows
I have cygwin + git as well as msy
My system is a bit of a mess with bash/cygwin/git/msysgit/maybe-more...
chmod had no effect on the key, or the config file.
Then I decided to approach it from Windows, which worked.
Properties.Security tab.Advanced near the bottom.Change, next to Owner near the top.Check Names, then OK.Permission entries:, highlight each user that isn't "My-Awesome-Username", and select Remove. Repeat this until "My-Awesome-Username" is the only one left.Edit below.Type: at the top is set to Allow, and then tick the checkbox next to Full control.Hit OK, Apply, OK, OK.
Give it another try now...
Seems the sometimes the mock-bash can't control the file ownership. It's especially weird, as it's generated from a mock-bash script. Go figure.