cd /path/to/your/git/repo/
git remote -v
git remote rm origin
git remote add origin ssh://abc@gmail.com:8266/git/new/repo
scp -p -P abc@gmail.com:hooks/commit-msg .git/hooks/
git push -u origin --all
git push -u origin --tags
2024-02-11 21:53:22
cd /path/to/your/git/repo/
git remote -v
git remote rm origin
git remote add origin ssh://abc@gmail.com:8266/git/new/repo
scp -p -P abc@gmail.com:hooks/commit-msg .git/hooks/
git push -u origin --all
git push -u origin --tags
下一篇:Tomcat内存溢出解决方法