Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 BitBucket 存储库,然后在我的本地存储库中的一个文件中进行了一些小的更改。我做了一个 git commit,然后是一个 git push -u origin master。但我得到一个错误,说它没有找到。我必须做什么?
您需要重置远程路径:
$ git remote rm origin $ git remote add origin <your_new_repos_remote_path>