An unknown username in the Author attribute in the very first commit #201415
Unanswered
digi-bipul
asked this question in
Code Security
Replies: 1 comment
-
|
Hey! This isn't a hack or bug — it means the folder you started in wasn't actually empty on the git side. It already had a hidden Quick way to check: git log --all --onelineIf you see a commit older than a few minutes ago, that's your proof — it was already there. Easiest fix, start totally fresh: rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin <your-repo-url>
git push -u origin main --forceThat nukes the old history and leaves only your own commits. Should sort it out 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Other
Discussion Details
Unknown Author during code commit
I've created a fresh GitHub repo and added it to my local machine by "git remote add origin" (not git clone) and within 5 mins or so, I committed my first code and it was successful. But surprisingly I noticed there were a contributor named '1Dinama1' automatically addeded under the Contributors list and even more surprisingly the author of the Code commit is the same username, not mine...
1. I've double checked my local machine
user.emailwhich is GitHub's private email, not my original one. Still it matches with mine, No typo here...2.
user.nameis also mine, no typo or mistakes...3. It was a local folder, not global, but double checked both configs... No issues at all...
4.
git config --local/--global user.name/emailboth same...Can You Help Me With The Issue Plz?
Beta Was this translation helpful? Give feedback.
All reactions