重裝系統之后git提交代碼提示GitLab: Author ‘xxx‘ is not a member of team
重裝系統git需要重新下載,需要配置用戶名和郵箱
出現Author ‘xxx‘ is not a member of team原因主要有兩種情況
一:配置完用戶名密碼沒有和gitlab關聯ssh,需要生成密鑰(github,gitlab,gitee等生成規則一樣) 詳情鏈接:https://www.cnblogs.com/cgy-home/p/12016851.html
二:自己的git賬號密碼郵箱原來是aaa@outlook.com關聯有github,gitee等,現在是bbb@qq.com關聯的項目在gitLab上,
最后配置的email是bbb@qq.com導致
最終修改為aaa@outlook.com即可。
git config --global user.name "Grant" git config --global user.email "aaa@outlook.com"