Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working? - No Changes? #9

Closed
ComputerConnor opened this issue Jan 22, 2025 · 8 comments
Closed

Not Working? - No Changes? #9

ComputerConnor opened this issue Jan 22, 2025 · 8 comments

Comments

@ComputerConnor
Copy link

I successfully pushed the changes to my private repo and turned on the setting to show changes even for private repos. After following the readme troubleshooting you provided, there are still no changes, any ideas?
Thanks

@ComputerConnor
Copy link
Author

Maybe it possibly takes time? If so, I will check back in a couple of hours and if so I will close the thread, here is my link to verify for any future testers to see this, thanks.

https://github.com/ComputerConnor?tab=overview&from=2024-12-01&to=2024-12-31

@mattrltrent
Copy link
Owner

@ComputerConnor

From my analytics, I can see you are attempting to push the changes to https://github.com/ComputerConnor/flash-files. As you can see, there are currently no commits there (beyond what looks like your original ones years ago); the new ones from the painter should show up instantly. Thus, the issue is that the commits were never pushed. Ergo, I can deduce the downloaded painter script probably wasn't run, had a Git/GitHub authentication error, or an internet error.

Did you run the script (this thing: chmod 701 github_painter.sh ; sudo ./github_painter.sh)? If so, could you show me a screenshot of it running and/or attach the file itself here?

Further, I can see from analytics that many other users have run it in the last few hours and if I inspect some of their repositories, I can see the painter definitely worked. To me, this further solidifies that this seems like a "running the script" issue.

Please don't hesitate to ask me more questions if you need, I'm here to help!

@ComputerConnor
Copy link
Author

That was through my first attempt, I then followed through to make a private brand new repo like you recommended and used the script creator tool and successfully pushed to the new repo. (See image attached)

I will send you an invite to the repo in case you want to look at it.

Image

Thanks,
Connor

@ComputerConnor
Copy link
Author

Here is also the output of the script working and the script attached as a .txt file

Image

github_painter.txt

(I put the code in a .txt file because github wont allow me to upload .sh)

@mattrltrent
Copy link
Owner

Great, thanks for the update! Glad it works, have a good one.

@ComputerConnor
Copy link
Author

Well see, thing is nothing changed. Yes it pushed to the repo, yes it made the commits, but it is not reflecting on my github page as you can see (see link). (Yes I have private commits reflected). Am I missing a step or did I do something wrong? For context, I'm trying to apply the effect to the year of 2024. Any help would be appreciated.

https://github.com/ComputerConnor?tab=overview&from=2024-12-01&to=2024-12-31

Thanks,
Connor

@mattrltrent mattrltrent reopened this Jan 24, 2025
@mattrltrent
Copy link
Owner

mattrltrent commented Jan 24, 2025

I believe it could be a Git configuration issue.

Re: Is this your name ("root") and email ("DESKTOP-TNTECHCONN.")? Those seem odd. Script and tool seem to be performing as expected, though.

Image

Perhaps run git config --list and check if the returned email and name parameters make sense on your local system where you ran the script from? You may need to change them like git config --global user.name "YOUR_NAME_HERE" and git config --global user.email "YOUR_EMAIL_HERE" (ref: this). This is because I presume the issue is your GitHub account's email and/or name doesn't match your local Git configuration, thus, GitHub doesn't see the commits as "yours" and therefore they don't show up in your Contribution Graph despite being in the repository.

I'm curious. Let me know if updating your local Git config to match your GitHub's (and then rerunning) works.

@ComputerConnor
Copy link
Author

ComputerConnor commented Jan 25, 2025

Figured it out! Yes, it was identifying it as root so when commits were being made it would say "root" made them and not myself. I brought the sh script over to my desktop in WSL 2 to try new and as a fresh attempt. One issue was for some reason, it kept wanting to use a "master" branch that was non existent so I added in the sh script

"git branch -m master main"

before it pulled the origin. Along with it setting the git config for user and email did apply to the config, but would still make commits under root, so by adding:

git log --oneline --author="ComputerConnor"

so I can think see for myself and upon tinkering around with the config, then it started using my name as the contributor. Now as you can see my page is updated and working.

Thanks for your Help and the Script,
Connor

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants