I was happily using git on my old Mac (Leopard), then migrated to a new (Lion) Mac. I installed Github for Mac, and I can clone repositories using that – but not from Terminal.
Any git clone from Terminal gets:
fatal: https://github.com/user/repository.git/info/refs download error – The requested URL returned error: 403
Any git pull from Terminal gets:
fatal: https://github.com/user/repository.git/info/refs download error – The requested URL returned error: 401
Do I need to start again and generate new keys? I assumed everything would be migrated with my user account (the contents of ~/.ssh are unchanged).
You are using
httpsurl and ssh keys don’t even matter. Make sure you have youruser.nameandemailfor git configured properly in your new Mac ( and while you are at it, configgithub.userandgithub.tokenas well)