git config --global user.name "your name" git config --global user.email "your_email@youremail.com"
git clone URL
git remote add origin git@github.com:yourName/yourRepo.git
orgit
git remote add upstream git@github.com:yourName/yourRepo.git
fatal: remote origin already exists.
能夠刪除原來的origin倉庫github
git remote rm origin
例如bash
git remote add origin1 git@github.com:yourName/yourRepo.git