0
我是git
的新手。我一直在努力讓git推送到我的遠程倉庫。我有一個網站與cPanel。我有ssh
訪問權限,我使用the cPanel Forums的命令。什麼是遠程倉庫上的Git鏈接
我用這一系列的步驟來安裝git
到了最新的git
版本完美地安裝在我的遠程服務器:
cd ~
wget http://git-core.googlecode.com/files/git-1.7.9.2.tar.gz
tar zxvf git-1.7.9.2.tar.gz
cd git-1.7.9.2
./configure --prefix=/home/$USER
make
make install
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
source $HOME/.bashrc
我現在已經是唯一的問題,什麼是我投入的鏈接git
命令行或tortoisegit
當我想克隆,推,拉?從GitHub
例子:[email protected]:username/try_git.git
實例什麼,我想在我的情況下將工作:[email protected]:directory/gitrepo.git
更具體地講,什麼是下面的代碼行做:
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
source $HOME/.bashrc
我在我的域名服務器上安裝了git,我也沒有root權限,這就是我使用上面鏈接安裝過程的原因。然而,當我嘗試從我認爲是它不斷給我的錯誤以下錯誤(或多個)的文件路徑推動或克隆:
Using username "git-upload-pack 'nathan".
Access denied
Access denied
Access denied
Access denied
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (36910 ms @ 12/31/2012 8:03:02 AM)
難道這通過使用tortoiseGit造成的?
我可能會問的其他問題是從我的遠程服務器克隆,推或拉的命令行示例,只有安裝了git?
任何幫助將不勝感激。
感謝您的快速回復。我嘗試了你說的,它給了我這個錯誤:錯誤:錯誤:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:訪問https://[email protected]/gittest/repo.git/info/refs?service = git時出現未知協議-loadload-pack fatal:HTTP請求失敗 – Nathan
我想使用類似ssh://[email protected]:linkto/projectname.git? – Nathan