LoginSignup
boriborifatman91
@boriborifatman91

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

[Sourcetree]リモートリポジトリにプッシュが失敗する原因

解決したいこと

Sourcetreeでリモートリポジトリにプッシュできない状態を解消したい

SourcetreeにリモートリポジトリURLを設定し、コミットしたのちにプッシュを実行すると、エラーが発生します。
設定していないはずなのに、プッシュ時のリポジトリ指定の際に末尾へ「/」がついてしまいます。
URLの設定を何度も確認してますが、/はついていないです。なぜこのようになるのか

発生している問題・エラー

git --no-optional-locks -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 --set-upstream アプリ名 refs/heads/master:refs/heads/master 
Pushing to https://github.com/ユーザー名/アプリ名.git
remote: Repository not found.
fatal: repository 'https://github.com/ユーザー名/アプリ名.git/' not found
Completed with errors, see above

自分で試したこと

リモートリポジトリURLが間違っていないかを確認しました。


git remote -v
アプリ名  https://github.com/ユーザー名/アプリ名.git (fetch)
アプリ名  https://github.com/ユーザー名/アプリ名.git (push)

git push private_diary  master
remote: Repository not found.
fatal: repository 'https://github.com/ユーザー名/アプリ名.git/' not found

0

2Answer

Your answer might help someone💌