私はmacosxlionを実行しています。
私の問題は、各コマンドを入力した後にgitがハングすることです。
入力するgit
と、Usage: git credential-osxkeychain <get|store|erase>
他の何かを入力しようとすると、たとえばgit status
、ターミナルがハングしますが、もう一度Enterキーを押すと、通常のターミナルプロンプトに戻りますが、コマンドは実行されません。
gitを機能させるにはどうすればよいですか?
私はmacosxlionを実行しています。
私の問題は、各コマンドを入力した後にgitがハングすることです。
入力するgit
と、Usage: git credential-osxkeychain <get|store|erase>
他の何かを入力しようとすると、たとえばgit status
、ターミナルがハングしますが、もう一度Enterキーを押すと、通常のターミナルプロンプトに戻りますが、コマンドは実行されません。
gitを機能させるにはどうすればよいですか?
gitをインストールするための特定のアプローチのようですが、次の手順に従うことをお勧めします: https ://help.github.com/articles/set-up-git
# Test for the cred helper
git credential-osxkeychain
# Download the helper
curl -s -O \
http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
# Fix the permissions on the file so it can be run
chmod u+x git-credential-osxkeychain
# Now you need to install the helper into the
# same directory where Git itself is installed.
# Find where git is installed
which git
# Move the file to the path `which git` returned so git can access it
sudo mv git-credential-osxkeychain /usr/local/git/bin/
# Set git to use the osxkeychain credential helper
git config --global credential.helper osxkeychain
個人的には、私はただ使用homebrew
し、それは同じくらい簡単ですbrew install git
私も同じ問題を抱えていました。Jdiの答えは私にはうまくいかなかったので時代遅れだと思います。
私の解決策はgitを再インストールすることでした
brew uninstall git
brew install git
git config --global credential.helper osxkeychain
git push
入力したユーザー名とパスワードの入力を求められます。それが機能したことを確認するために、私は再びgit pushを実行しましたが、それは私の資格情報を要求しませんでした、すべてが再び世界に良いです:)。