GitHub改名字
文章目录
记录刚刚改了github名字
改名字很简单,设置中.直接修改
稍微麻烦的是项目迁移.
如果你原来账号名字没有被别人注册之前,好像会会自动帮你重定向仓库的网页链接.
本地项目需要简单调整下.
操作
cd切到本地仓库目录
cd C:\Users\xjw11\Documents\GitHub\yakeblog
Linux一样
查看原来路径
git remote -v
origin git@github.com:xunni1000/yakeblog.git (fetch)
origin git@github.com:xunni1000/yakeblog.git (push)
切换新URL
git remote set-url origin git@github.com:Y-A-K-E/yakeblog.git
或者 https版
git remote set-url origin https://github.com/Y-A-K-E/yakeblog.git
查看更新是否成功
git remote -v
origin git@github.com:Y-A-K-E/yakeblog.git (fetch)
origin git@github.com:Y-A-K-E/yakeblog.git (push)
注意
如果windows用了GitHub desktop 版.那么需要退出一下,重新登陆.