5
4

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.

Github Bitbucket から Gitbucket に移行する手順

Last updated at Posted at 2015-06-30

Gitで管理している数が多くなってきたので自サーバーに設置したGitbucketへ移行することになった。そのときの手順。

git remote add origin https://example.com/git/username/project_name.git

でいけるものとおもってたけども一度設定してあると別のコマンドで設定しないといけないっぽい。

originの設定確認

git config -l

gitのリモートリポジトリoriginのURLを変更する

の通りに

git remote set-url origin https://example.com/git/username/project_name.git

originの設定確認

git config -l

変更されているか確認して

git push -u origin master
5
4
2

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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?