103

Git push hangs everytime I try to push to github. I am using Cygwin and Windows 7. Git functions fine locally tracking branches, providing status, setting global user.name and user.email and allowing commits.

I'm still new and learning.

I enter git push , git push origin master or git push -u origin master and I get nothing but a blank line requiring me to ctl-c to get the prompt back.

ssh-keygen -t rsa -C "me@example.com" asks me for a file name and hangs

git push heroku master hangs

$ git status returns On branch master nothing to commit, working directory clean

$ git pull returns Already up to date

$ git remote -v returns:

heroku  git@heroku.com:myherokusite.git (fetch)

heroku  git@heroku.com:myherokusite.git (push) origin  

https://github.com/gitusername/appname.git (fetch) origin  

https://github.com/gitusername/appname.git (push)

or the correct ssh remote settings are returned when trying this with ssh

Updated: Using the SSH url git@github.com:gitusername/gitrepo.git also hangs

git remote set-url origin https://github.com/gitusername/appname.git is correct

Updated: I can see the git processes running in Windows Task Manager while it hangs.

I've tried:

Using different internet connection locations

switching between https and ssh and it hangs

Uninstalled git. Reinstalled from: https://code.google.com/p/msysgit/downloads/list

Uninstalled git. Installed Cygwin's git

Uninstalled git. Installed Github for Windows GUI app and it I WAS able to push. But this app has limited functionality, forces me out of my Cygwin window into another app which then forces me into a Windows command prompt for complete functionality which I thought I had escaped by using Cygwin.

Spent many, many hours trying to resolve this, it worked faultlessly before, thanks.

UPDATE 4/2014: I rebuilt my entire machine Win 7, Cygwin etc and all is now working fine

4

27 に答える 27

69
git config --global core.askpass "git-gui--askpass"

これは私にとってはうまくいきました。ログイン資格情報を入力するだけでプロンプトが表示されるまでに 3 ~ 5 秒かかる場合があります。

于 2013-10-06T02:22:55.010 に答える
34

GIT_CURL_VERBOSE=1 git push を試す

...プロキシ設定が原因で問題が発生する可能性があります。たとえば、git がプロキシ サーバー経由で github.com にアクセスしようとしていて、プロキシが応答しない場合です。

GIT_CURL_VERBOSE=1 を指定すると、ターゲット IP アドレスといくつかの情報が表示されます。この IP アドレスを次のコマンドの出力と比較できますhost www.github.com。これらの IP が異なる場合は、設定https_proxy=""して再試行できます。

于 2013-06-09T19:27:41.053 に答える
1

これは、コンピューターのディスク容量がいっぱいになったときに発生しました。いくつかのファイルを削除し、ゴミ箱を空にして修正してください。

于 2015-12-15T16:11:17.487 に答える
1

持っていたものと同じなのかな…。

  1. パテに入ります
  2. 保存されたセッションの「デフォルト設定」をクリックします。[読み込み] をクリックします
  3. 接続に移動 -> SSH -> バグ
  4. 「PuTTY の SSH-2 'winadj' リクエストのチョーク」を (自動ではなく) オンに設定します。
  5. ツリービューのセッションに戻る (リストの一番上)
  6. [保存されたセッション] ボックスで [デフォルト設定] をクリックします。[保存] をクリックします。

これは(ほぼ逐語的に)以下から来ています:

https://tortoisegit.org/issue/1880

于 2014-04-03T11:12:56.333 に答える
1

私の場合、問題は、キーチェーンへのアクセスをロックするプロセスがあったことでした...

他のすべてのアプリを強制終了して、Mac でキーチェーン アクセスがロックされていないことを確認します

于 2016-10-27T18:55:29.643 に答える
1

したがって、 & と入力するgit pish-u originと、資格情報を求める GUI がポップアップするはずです。私の場合、 と入力した後git pish-u origin、タスク マネージャーを見て、資格情報を要求するためにポップアップする GUI であると確信している実行中の何かを見つけるまで、何も起こりません。私はその仕事を終わらせることにしました。私のgitbashでエラーが表示されると思っていましたが、代わりに、いまいましいGUIがついに表示され、最終的に進むことができました。

于 2021-06-17T17:14:30.800 に答える
0

Windows 資格情報マネージャーを使用する場合は、 git Bash の代わりに CMD を使用してください。次に、認証方法を追加して続行できます。これは私にとってはうまくいきました。

于 2021-09-15T17:14:26.053 に答える