SourcetreeからGitHubへプッシュする際に403エラーとなってしまいます。
エラーの表示内容は以下の通りです。(今回が初回のプッシュとなります。)
■プッシュ先のリポジトリ:originの場合
git -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master
Pushing to https://github.com/○○/○○○.git
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/○○/○○○.git/': The requested URL returned error: 403
Completed with errors, see above
■プッシュ先のリポジトリ:カスタムの場合
git -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags https://<アクセストークン>@github.com/github.com/○○/○○○.git refs/heads/master:refs/heads/master
One or more of this task's arguments is invalid. They cannot start with '-', and must follow git ref-format rules: https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
Completed with errors, see above
エラーの原因が分からず困っています。
解決策が分かる方いらっしゃいましたらご教示願います。
★追記
アクセストークンの期限が切れていることに気づき、アクセストークンの再取得を実施しました。
https://zenn.dev/rata/articles/c62f97fa87bb43
上記URLに記載されていることを試しましたが解決しませんでした。
他にもGitHub、Sourcetreeで何か再設定等が必要でしょうか?
あなたの回答
tips
プレビュー