My Github contributions aren't being tracked when I commit from the command line and I can't figure out why.
My git config user.email
and git config --global user.email
and my primary email on Github all match.
However, when I went on the github site and deleted a file from a PR through the GUI, and committed it, that showed up as a contribution.
Any ideas? Thanks!
CodePudding user response:
You need to use the git push
command to push the changes to the repository on GitHub. Otherwise, the changes will take effect in your local repository.
# 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
CodePudding user response:
There are a couple possibilities:
- You haven't pushed them to GitHub.
- Your changes aren't in the main repository, but a fork.
- Your changes aren't in the default branch.
GitHub has documentation on the reasons this can happen.