更換idea提交代碼到Git的用戶名及郵箱


更換idea提交代碼到Git的用戶名及郵箱
https://blog.csdn.net/weixin_41719046/article/details/108248467

打開git終端執行:

修改全局用戶名的命令:(userName替換成自己的用戶名)

  git config --global user.name "userName" 
  
  
  
          

修改全局郵箱的命令:(userEmail替換成自己的郵箱:自己Git賬戶郵箱)

  git config --global user.email "userEmail" 
  
  
  
          

注意:user.name/user.email后面一定要記得加空格。

 

查看Git用戶名:

  git config user.name
  
  
  
          

查看Git郵箱:

  git config user.email
  
  
  
          

打開C盤里的 .gitconfig文件,查看是否是你修改后的用戶名和郵箱。

 

修改當前項目的用戶名和郵箱地址:(此項本人未測試)


   
   
   
           
  1. git config  user.name   "userName"
  2. git config  user.email   "userNmail"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM