2020年10月28日水曜日

git remote

remote(github)すでにある、localでもgit initで作った。remoteとlocalを連結させるため
git remote add origin https://github.com/xxx/yyy.git

localですでにgitあり、remote(gitlab)まだない、local gitをremoteで反映させる
git remote add origin https://アカウント名@gitlab.com/アカウント名/プロジェクト名.git

削除
git remote rm origin // 関連性を削除
git remote remove origin // remote repository削除