git 配置

邮箱和姓名

git config --global user.name "username"
git config --global user.email "email@example.com"

默认编辑器

git config --global core.editor "vim"

远程库

git remote remove origin
git remote add origin [new-repository-url]
git push --set-upstream origin main
posted @ 2024-05-01 03:07  Undefined443  阅读(3)  评论(0编辑  收藏  举报