明明提交了很多次抛猫,但是github上profile的contribution圖卻是一片空白蟆盹。
這個原因可能是你提交的時候郵箱和github綁定的郵箱不一致導(dǎo)致的。
像我這里闺金,因為是用工作的電腦提交的日缨,git 全局配置了郵箱為公司郵箱,和github的私人郵箱不一致掖看,導(dǎo)致無法獲取contribution記錄匣距。
git 可以根據(jù)項目單獨配置email和username,方法是使用--local
參數(shù)哎壳。
git config --local user.email xxx@xx.com
git config --local user.name xxx
這樣配置僅在此git repo
內(nèi)生效毅待。不會影響全局的配置。