facebook twitter hatena line email

「Git/github/他gitからgithubへ移動」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(他gitからgithubへ移動の手順)
行4: 行4:
 
#bitbucketのレポジトリのbranchを、それぞれpullして最新へ
 
#bitbucketのレポジトリのbranchを、それぞれpullして最新へ
 
#bitbucketのremoteのurlを削除する <pre>git remote rm origin</pre>
 
#bitbucketのremoteのurlを削除する <pre>git remote rm origin</pre>
#bitbucketのremoteのurlを削除する <pre>git remote rm origin</pre>
+
#githubのremoteのurlを追加する <pre>git remote add origin git@github.com:user1/project1.unity.git</pre>

2025年6月6日 (金) 01:35時点における版

他gitからgithubへ移動の手順

bitbucketからの例

  1. bitbucketからcloneされたレポジトリをbackupしておく
  2. bitbucketのレポジトリのbranchを、それぞれpullして最新へ
  3. bitbucketのremoteのurlを削除する
    git remote rm origin
  4. githubのremoteのurlを追加する
    git remote add origin git@github.com:user1/project1.unity.git