---
title: Updating GIT credentials in Command Line
description: If you've seen an 'Authentication failed for https://____.git error, here's a quick command to update your credentials through the command line.
date: 2020-08-05
tags: GIT, Authentication, Terminal
source: https://brianchildress.co/blog/update-git-credentials-command-line
---

# Updating GIT credentials in Command Line

If you've seen an 'Authentication failed for https://____.git error, here's a quick command to update your credentials through the command line.

_For Mac:_
```sh
git config --global credential.helper osxkeychain
```

_For Windows:_
```sh
git config --global credential.helper wincred
```

You should then see a prompt for username/ password, enter your new credentials here.
