👌

XcodeからパーミッションがなくてGitHubにPushできない

に公開

解決方法

Block command line pushes that expose my emailのチェックを外す

GitHub Settings

When you push to GitHub, we’ll check the most recent commit. If the author email on that commit is a private email on your GitHub account, we will block the push and warn you about exposing your private email.

GitHub Email Settings

エラーメッセージ

The remote repository rejected commits.

Make sure you have permission to push to the remote repository and try again.

The remote repository rejected commits.

背景

XcodeからGitHubにPushしようとしたら、エラーメッセージが表示されました。
GitHubの設定で、プライベートメールアドレスを公開しないようにするための機能があり、この機能が有効になっていると、XcodeからGitHubにPushできないらしいです。

参考

エラーメッセージで検索したらすぐ出てきます。
Git - The Remote Repository Rejected Commits

GitHubで編集を提案

Discussion