Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Git user in IntelliJ IDEA

My IntelliJ IDEA was used by another user and when I try to push to Git, I was asked a password of this user.

How can I change user in my IDEA? I tried to change global Git user, but it is not working.

like image 639
user4519506 Avatar asked Feb 02 '15 10:02

user4519506


1 Answers

  1. Go to the base directory of your project.

  2. You will find a hidden directory called ".git". Enter into it.

  3. There you will see a file called "config". Add the below code.

    [user]       name = username       email = [email protected] 
like image 148
Amaresh Narayanan Avatar answered Sep 20 '22 03:09

Amaresh Narayanan