---
title: "How to remove credentials from Git?"  
description: "How to remove credentials from Git?"  
author: "Utpal Vishwas"  
published: 2023-07-14  
updated: 2023-07-15  
canonical: https://www.mindstick.com/forum/159098/how-to-remove-credentials-from-git  
category: "website & mobile applications"  
tags: ["github"]  
reading_time: 1 minute  

---

# How to remove credentials from Git?

How to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) credentials from [Git](https://www.mindstick.com/articles/337581/how-to-resolve-merge-conflicts-in-git-and-keep-your-repository-clean)?

## Replies

### Reply by Aryan Kumar

There are two ways to remove credentials from Git:

- **Using the Credential Manager**

The Credential Manager is a Windows utility that stores credentials for various applications. You can use the Credential Manager to remove Git credentials.

To do this, follow these steps:

1. Open the Credential Manager.
2. In the Credential Manager, expand the **Windows Credentials** section.
3. Find the Git credentials that you want to remove.
4. Right-click the Git credentials and select **Delete**.
5. Click **Yes** to confirm the deletion.

- **Using the** `git config` **command**

You can also use the `git config` command to remove Git credentials.

To do this, follow these steps:

1. Open a command prompt.
2. Run the following command:

```plaintext
git config --global --unset credential.helper
```

This will unset the `credential.helper` configuration setting, which will cause Git to no longer store credentials.

**Note:** If you have used the `git config` command to store the Git credentials in a file, you will need to delete the file to completely remove the credentials.


---

Original Source: https://www.mindstick.com/forum/159098/how-to-remove-credentials-from-git

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
