I committed as usual to my remote repository on GitHub, but recently I found after my committing, it shows that was being done by another people. It is weird and I don't know why.
Asked
Active
Viewed 1,659 times
0
-
check `git config user.name` in your local system – Arpit Solanki Jun 12 '17 at 08:13
-
Yes, it's not my name, It must have changed automatically. I don't know how it became so. I have cloned some repository of that users' repository – ComplicatedPhenomenon Jun 12 '17 at 08:19
-
1so change it using `git config --global user.name
` – Arpit Solanki Jun 12 '17 at 08:20
1 Answers
2
Your Identity
The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
Again, you need to do this only once if you pass the --global
option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the --global
option when you’re in that project.

Rohit Poudel
- 1,793
- 2
- 20
- 24