1

I've set up Visual Studio 2010 in order to use Git from the Package Manager Console, more precisely:

  • I've installed msysgit (adding Git executables under %PATH%);
  • I've installed Posh Git and I've enabled it using the instructions given in this SO answer.

I've also installed GitHub for Windows for easy access to repositories hosted on GitHub.

From the Package Manager Console I am able to do all the operation locally, but when I want to push to a GitHub repository the prompt seems "blocked", I cannot kill git using the Stop button and I'm forced to close Visual Studio and to push from the Git Shell provided with GitHub for Windows.

Using Process Explorer I can see that git spawn the GitHub for Windows program to do the authentication and from there it doesn't seem to advance.

4

2 に答える 2

4

I've resolved this issue by installing the Windows Credentials Store for Git (also suggested in the TFS blog), so that it handles the authentication instead of GitHub for Windows.

Now I can do git push from Package Manager Console -- the credentials store asks for credentials the first time and then pushes correctly to GitHub.

于 2013-03-22T18:44:46.943 に答える
1

リポジトリが (GitHub ではなく) Team Foundation Service でホストされている場合は、(edymtt で回答されているように) Git 用の Windows 資格情報ストアをインストールするだけでなく、コマンド プロンプトを使用して Git タスクを実行する前に、基本認証を有効にする必要があります。これは、TFS のユーザー プロファイルから設定できます。http://msdn.microsoft.com/library/dd286572(v=vs.120).aspx

于 2013-09-27T13:45:58.780 に答える