# Set Email and Username in the Specific Project in GIT

To check the global email and username set in Git, you can use the following commands:

1. **Check global username**:
    
    ```typescript
    git config --global user.name
    ```
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729871009895/8d6d3176-768b-4242-997f-7e8cd0172701.png align="center")
    
2. **Check global email**:
    
    ```typescript
    git config --global user.email
    ```
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729871042466/f5585a51-7b5e-4d16-9a16-867c0ed96467.png align="center")
    
    # Set a specific **email** and **username**
    
    To set a specific **email** and **username** for the current project only in Git, you can configure Git at the repository level using the following commands. This allows you to use a different identity for a particular project without affecting your global Git configuration.
    
    ### Step 1: Navigate to Your Project Directory
    
    Open your terminal or command prompt and navigate to the directory of your project:
    
    ```typescript
    cd open_source\keriderya
    ```
    
    ### Step 2: Set Local Git Username and Email
    
    To set the **username** and **email** for this specific project, use the following commands:
    
    1. **Set the email** for the current project:
        
        ```typescript
        git config user.email "gayaresthird@gmail.com"
        ```
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729871131094/5a763cad-dfb8-40fa-be7f-69cfe6b535e1.png align="center")
        
    2. **Set the username** for the current project:
        
        ```typescript
        git config user.name "Thirdy Gayares"
        ```
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729871210614/bcb6e56c-a4b7-4e68-86c2-751ea6809841.png align="center")
        
    
    ### Step 3: Verify the Local Configuration
    
    To verify that the username and email are set correctly for the current project, run:
    
    ```typescript
    git config --local --list
    ```
    
    You should see something like:
    
    ```typescript
    user.name=Thirdy Gayares
    user.email=gayaresthird@gmail.com
    ```
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729871250254/7b73dfaf-31d8-4a30-b0a9-1755aefefc69.png align="center")
    
    ### Explanation:
    
    * `git config --local` modifies the `.git/config` file within the current project. This ensures that the changes only affect the current project and do not alter the global settings.
        
    * **Global settings** can be checked by running `git config --global --list`, which contains the default username and email for all repositories unless overridden by local settings.
        
    
    This way, Git will use the specified email and username for commits made in this project.
