# Git Graph からの push で credential が保存されない問題を修正する

## 前提の環境

- Windows
- [GROWI Docs: 開発スタートアップ v2](https://docs.growi.org/ja/dev/startup-v2/dev-env.html)
    - Windows ホストでの Git は SourceTree の embed のものを利用

## 症状

- VSCode Remote on WSL や VSCode Remote on devcontainer にインストールした Git Graph から push する際に、必ず credential を求めるプロンプトが表示される
    - VSCode 上のプロンプトも、wincred のプロンプトも両方表示される
- VSCode Remote on WSL や VSCode Remote on devcontainer の shell から push するとエラーが発生
    ```bash
    $ git push
    fatal: AggregateException encountered.
    1 つ以上のエラーが発生しました。
    ```
    
## 回避策

- Git for Windows をインストールし、SourceTree の Git 設定では「System」を選択する


## 備考

- あれこれやっていた中で効果があったかどうか定かでない手順
    - 予め、SourceTree GUI からの push を一度やっておく
- 今後 SourceTree を廃止して Git for Windows インストールに統一した方がいいかもしれない


---

## Page Navigation

- Canonical URL: https://tips.weseek.co.jp/Tips/VSCode/Git%20Graph
- Permalink: https://tips.weseek.co.jp/5f1a017b1cc0ee0048ee5d66
- Parent: [VSCode](/5e9b270093fd090048cc8acb.md)
- Children: 0 total
- Total descendants: 0
- Siblings: 2 total
  - [おすすめショートカットキー](/5e9b290193fd090048cc8ace.md)
  - [背景画像を設定する](/5e5208c23a1f5c0048d0ac85.md)
- Last updated: 2020-07-23T21:30:48.465Z by yuki
- Full page listing (all children regardless of count): https://tips.weseek.co.jp/_api/v3/page-listing/children?id=5f1a017b1cc0ee0048ee5d66
