Currently trying to link my GitHub account to my new 14in MacBook Pro (2021). When running:
gh auth login
getting the following error:
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? SSH
? Upload your SSH public key to your GitHub account? Skip
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: 0EA1-6D8E
- Press Enter to open github.com in your browser...
failed to authenticate via web browser: mkdir /Users/myusername/.config/gh: permission denied
When I copy and paste the one-time code into my browser, GitHub says the authentication was successful. See screenshot:
