2012-10-19 57 views
1

嘗試安裝git的流動無法安裝混帳流

運行:

 
brew install git-flow 

了:

 
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 

了:

 
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

你還有問題嗎? (之前在GitHub上有一個DDOS) – VonC

回答

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 [email protected] 

這裏也是一個link到GitHub的有關將SSH密鑰到github上。