
이 포스팅은 Mac 환경에서 작성되었습니다.
mkdir project-folder
git remote add origin https://github.com/user/first-repo.gitgit remote add second-remote https://github.com/user/second-repo.gitgit remote -vorigin https://github.com/user/first-repo.git (fetch)
origin https://github.com/user/first-repo.git (push)
second-remote https://github.com/user/second-repo.git (fetch)
second-remote https://github.com/user/second-repo.git (push)git checkout second-remote/maingit add .
git commit -m "commit message"
git push second-remote maingit push origin main
git push second-remote maingit pull origin main
git pull second-remote maingit remote remove origin
git remote remove second-remote