尝试安装git flow
运行:
brew install git-flow
GOT:
Updating /Library/Caches/Homebrew/git-flow--git error: could not lock config file .git/config: Permission denied Error: Failure while executing: git config remote.origin.url https://github.com/nvie/gitflow.git
同时运行:
wget --no-check-certificate -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh
GOT:
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1' install: /usr/local/bin/git-flow: No such file or directory install: /usr/local/bin/git-flow-init: No such file or directory install: /usr/local/bin/git-flow-feature: No such file or directory install: /usr/local/bin/git-flow-hotfix: No such file or directory install: /usr/local/bin/git-flow-release: No such file or directory install: /usr/local/bin/git-flow-support: No such file or directory install: /usr/local/bin/git-flow-version: No such file or directory install: /usr/local/bin/gitflow-common: No such file or directory install: /usr/local/bin/gitflow-shFlags: No such file or directory
答案 0 :(得分:3)
我会说你的SSH密钥存在问题。
我认为可以安全地假设您使用Macintosh,因为brew
命令。
所以这就是我如何解决这个问题。
$ ssh-keygen -t dsa
Generating public/private dsa key pair.
如果您希望它为默认值,请将以下内容留空。 如果您不想要密码,请将密码保留为空
Enter file in which to save the key (/Users/user/.ssh/id_dsa): [id_dsa or empty]
Enter passphrase (empty for no password):
Enter same passphrase again:
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost
这里还有一个关于将你的ssh密钥添加到github的GitHub的link。