--- title: Configure git user information tags: configuration,repository,beginner --- Configures user information for git. - Use `git config user.email ` to set the user's email for the current repository. - Use `git config user.name ` to set the user's name for the current repository. - You can use the `--global` flag to configure global user information. ```sh git config [--global] user.email git config [--global] user.name ``` ```sh git config user.email "cool.duck@qua.ck" git config user.name "Duck Quackers" # Configures user for current repository git config --global user.email "cool.duck@qua.ck" git config --global user.name "Duck Quackers" # Configures global git user ```