LoginSignup
3
6

More than 5 years have passed since last update.

SourceTreeでpullもfetchもできなくなったときの対応

Posted at

原因不明, 再現方法不明, その状態における解決方法のみ記載。

原因

不明。 未特定。

現象

  • git 2.10.1を使用
  • Mac
  • fetchやpullができない。
    • fetchやpullを使用とすると延々と終わらない。(タイムリミットまで終わらない)
  • Githubを使用
    • Githubへは、HTTPSを使用してた
    • 認証はOAuthを使用してた
    • Githubでは、二段階認証を有効にしている
  • SourceTreeでは、GPGでサインしてる.

修正方法

Credentialが無いと仮定して再度ログインしてやればいい。
=再度認証をしてやればいい。

Preference -> Accounts -> Githubのアカウント選択してRemoveボタン押下&Remove -> Addボタン押下 -> (追加)

(無意味) SourceTreeが実行するFetchコマンドをTerminalから実行

いみない。

✗ git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch --prune origin
git: 'credential-sourcetree' is not a git command. See 'git --help'.

(無意味) Credential を確認

いみない。

✗ git help -a|grep credential-
  credential-cache          remote-fd
  credential-cache--daemon  remote-ftp
  credential-osxkeychain    remote-ftps
  credential-store          remote-http
  credential-gcloud.sh  flow

しばらくSourceTreeでPush/Pull/Fetchできなくて、Git力が試された。

3
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6