10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Bitbucketのプロジェクト名を変更してgit remoteの再設定

Posted at

Bitbucketのプロジェクト名を変更したら、ローカルからPUSHしようとすると、エラーになります:

liubin:event liubin$ git push -u origin new_order_system
conq: repository does not exist.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

プロジェクト名が変わったため、リモートURLも変わりました。

下記のコマンドでリモートURLを更新します。

git remote set-url origin git@bitbucket.org:liubin0329/xxx.git

これで無事に再PUSHできるようになりました。

10
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?