Causes of problems
Cause: the user name and mailbox configured by local git are inconsistent with the user name and mailbox of your remote git warehouse.
terms of settlement:
➜ php-xxxx git:(master) ✗ git config user.email
[email protected]
Will display the local configuration of the mailbox, if and your Git is not the same, you can use the following two methods
- 1. Global configuration
git config --global user.name "xxxx"
git config --global user.email "[email protected]"
- 2. Local configuration, only valid for the current project
➜ php-xxxx git:(master) ✗ git config user.email
[email protected]
➜ php-xxxx git:(master) ✗ git config user.name
jack-xxxx
More interesting content, pay attention to the following official account of WeChat public.