Git - remote: Repository not found


I have SourceTree with local working copy. And all operations work good, I can simple fetch, push, pull and etc via SourceTree. I just needed to make force push which does not exist in SourceTree.

I opened terminal made git push -f

remote: Repository not found.
fatal: repository '' not found

I am not sure what can be an issue.


Remove all the credential details from the system.

For mac

Delete the password from the Keychain Access.

For windows

Delete the credentials from Credential Manager.

Synchronizing a local Git repository with a remote one

How to change my Git username in terminal?