I am working in a private repo, so it's just normal that it asks for my password (I read that), but before I was working in a public repo; how could git push to master
without having my password ? Does that means anyone can enter just my username and email and push to master
in my public repo ?
Asked
Active
Viewed 59 times
-1

Bananasmoothii
- 144
- 12
-
1There's not enough information here. How's the repository set up? How's it hosted? What account are you using? Does it use a password or an SSH key? Are you providing it? Did you authenticate (once) with HTTPS or SSH in your client? – Asteroids With Wings Dec 23 '20 at 22:10
-
2Is it GitHub or other services? – Hunter Tran Dec 23 '20 at 22:10
-
Public can mean many things. If it's read-write public then yes anyone can just push to it even without your username and email but using their own. Usually you can control these things. E.g. in github it's only public for reading and you have to specify which users are allowed to push to your repo when hosted there – apokryfos Dec 23 '20 at 22:10
-
Sorry, it is a GitHub public repository, and now it's a GitHub private repository – Bananasmoothii Dec 24 '20 at 19:17
1 Answers
0
I hope this useful for you:
If your partner team change the user and email like your's and push it, it can makes problems cause it seem's like change by you. I found this information to prevent this: Signature in Git
https://docs.github.com/es/free-pro-team@latest/github/authenticating-to-github/signing-commits
Cheers :)

Luis Angel Pena Zuniga
- 174
- 8