社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

Github的贡献没有出现,但邮件匹配

Madelyn Adams • 3 年前 • 1268 次点击  

当我从命令行提交时,我的Github贡献没有被跟踪,我不知道为什么。

我的 git config user.email git config --global user.email 匹配我的Github和所有主要邮件。

然而,当我在github网站上通过GUI从PR中删除一个文件并提交时,这显示为一种贡献。

有什么想法吗?谢谢

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/128905
 
1268 次点击  
文章 [ 2 ]  |  最新文章 3 年前
Sercan
Reply   •   1 楼
Sercan    3 年前

你需要使用 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
bk2204
Reply   •   2 楼
bk2204    3 年前

有几种可能性:

  • 你还没有把他们推到GitHub。
  • 您的更改不在主存储库中,而是在fork中。
  • 您的更改不在默认分支中。

GitHub有 documentation on the reasons this can happen .