當我從命令列提交時,我的 Github 貢獻沒有被跟蹤,我不知道為什么。
我git config user.email和git config --global user.email我在 Github 上的主要電子郵件都匹配。
但是,當我訪問 github 站點并通過 GUI 從 PR 中洗掉一個檔案并提交時,它顯示為貢獻。
有任何想法嗎?謝謝!
uj5u.com熱心網友回復:
有幾種可能性:
- 您還沒有將它們推送到 GitHub。
- 您的更改不在主存盤庫中,而是在一個分支中。
- 您的更改不在默認分支中。
GitHub 有關于發生這種情況的原因的檔案。
uj5u.com熱心網友回復:
您需要使用該git push命令將更改推送到 GitHub 上的存盤庫。否則,更改將在您的本地存盤庫中生效。
# After making changes to the local repository, use the command below to monitor all those changes.
git add .
# Use the command below to commit all changes.
git commit -m "Message"
# Run the following command for the changes to take effect in the repository on GitHub:
git push -u origin feature
# If your branch name is "main" use it like this:
git push -u origin main
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/391663.html
標籤:github
上一篇:從Github頁面下載專案
