# 解决 Webstorm 每次更新 Git 代码都要输入密码的问题

**URL:** <https://www.shiqidu.com/t/topic/654>\
**Category:** 开发调优\
**Tags:** GitHub\
**Created:** [2019 年10 月 11 日 14:17 UTC](https://www.shiqidu.com/t/topic/654 "2019-10-11T14:17:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Leon](https://www.shiqidu.com/user_avatar/www.shiqidu.com/leon/32/5_2.png) [@Leon](https://www.shiqidu.com/u/Leon)\
发布日期： [2019 年10 月 11 日 14:17 UTC](https://www.shiqidu.com/t/topic/654/1 "2019-10-11T14:17:42Z")

</div>

使用 Webstorm fetch 代码时，第一次密码输错了，然后每次更新的时候都弹出输入密码的窗口，就算点了输入正确并且选中了保存密码都没用。

常规的解决方案

```auto
git config --global credential.helper store

```

然而并没有什么卵用，正要卸载重装的时候，发现了正确的做法。

 ![Use credential helper](https://discourse.shiqidu.com/uploads/default/original/1X/68ea75196e2484160edf6556b9acc7396d13693b.png)

选中 **Use credential helper** ，配合上边的命令可以解决此问题。
