1.查看当前仓库地址
ssh连接,进入对应的git目录下,运行下列命令
git remote -v
git remote show origin
2.设置新的仓库地址
1.先登录 gitlab 查看当前仓库地址:
执行修改地址命令
git remote set-url origin 仓库地址
查看当前用户和邮箱
git config user.name
git config user.email
修改用户名和邮箱
git config --global user.name "username"
git config --global user.email "email"