「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> | ||
− | # | + | #githubのremoteのurlを追加する <pre>git remote add origin git@github.com:user1/project1.unity.git</pre> |
2025年6月6日 (金) 01:35時点における版
他gitからgithubへ移動の手順
bitbucketからの例
- bitbucketからcloneされたレポジトリをbackupしておく
- bitbucketのレポジトリのbranchを、それぞれpullして最新へ
- bitbucketのremoteのurlを削除する
git remote rm origin
- githubのremoteのurlを追加する
git remote add origin git@github.com:user1/project1.unity.git