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"