Git密码缓存 [英] Git Password Cache
问题描述
git noob在这里.我正在尝试通过其文档设置GitHub的密码缓存.>
当我转到下面的步骤时,我使用了哪个git"来查看我的目录是否与示例相同.我的目录是/usr/bin/git.如说明所述,我将示例路径替换为我的路径.
(示例路径)$ sudo mv git-credential-osxkeychain/usr/local/git/bin(我的路径)$ sudo mv git-credential-osxkeychain/usr/bin/git
不幸的是,Git现在似乎有问题.我无法运行任何Git命令.例如(git --help).如果我尝试,它只会返回一个空行.如果我只是在终端中键入Git,它将返回
用法:git credential-osxkeychain< get | store | erase>
我不确定从这里去哪里.任何帮助是极大的赞赏.
似乎您已使用 git-credential-osxkeychain
在 git
二进制文件上进行了复制.您可能想这样做:
$ sudo mv git-credential-osxkeychain/usr/bin/
相反.
您需要重新安装git,然后将 git-credential-osxkeychain
二进制文件复制到正确的位置.
说哪个git
时,您得到的是实际 git
程序的名称,而不是文件夹.
git noob here. I am trying to set up password caching for GitHub by following their documentation.
When I got to the step below I used 'which git' to see if my directory was the same as the example. My directory was /usr/bin/git . As the instructions said, I replaced the example path with my path.
(Example Path) $ sudo mv git-credential-osxkeychain /usr/local/git/bin
(My Path) $ sudo mv git-credential-osxkeychain /usr/bin/git
Unfortunately, there now seems to be a problem with Git. I can't run any Git commands. For example (git --help). If I try, it just returns a blank line. If I simply type Git into the terminal it returns
Usage: git credential-osxkeychain <get|store|erase>
I'm not sure where to go from here. Any help is greatly appreciated.
It looks like you've copied over your git
binary with git-credential-osxkeychain
. You probably wanted to do:
$ sudo mv git-credential-osxkeychain /usr/bin/
instead.
You'll need to re-install git, then copy the git-credential-osxkeychain
binary to the right place.
When you say which git
you get the name of the actual git
program, not the folder.
这篇关于Git密码缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!