I am trying to use osx keychain with git, but when i enter
sudo mv git-credential-osxkeychain /usr/local/bin
and then my password i get the error: mv: git-credential-osxkeychain: No such file or directory
My git installation is located in /usr/local/bin/git
I am using Mac OSX Mountain Lion.
I find one of the best tricks for cases like this is using locate
, an insanely powerful command. In this example, locate git-credential-osxkeychain
results in a few paths showing you exactly where to look.
Plus, you can use other fun CLI stuff like piping locate results to grep to refine a search: locate git-credential-osxkeychain | grep /usr
locate git-credential-osxkeychain | grep /usr
在我的Mac OSX Mountain Lion机器上,它位于/ usr / local / git / bin / git-credential-osxkeychain
对我来说,使用cd usr/local/git/bin/
then mv git-credential-osxkeychain /usr/local/bin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.