我是git的新手,有誰能告訴我如何下載此項目?我不知道作者爲什麼寫'用你的用戶名'替換'kai',但我只是遵循這個指令並使用我的用戶名。但是,它提示我輸入密碼,而我沒有設置任何密碼。如果我保留原始用戶名,它也會提示我輸入密碼。所有我做的事是如何使用git下載項目
git config --global user.name luming
git config --global user.email \myemail
git clone [email protected]:/srv/git/psc
git clone [email protected]:/srv/git/psc
相應的輸出是
[email protected]'s password:
[email protected]'s password:
而且從網站指令寫道:
//Get the code (replace 「kai」 with your user name):
[[email protected] tmp]$ git clone [email protected]:/srv/git/psc
Initialized empty Git repository in /Users/kai/tmp/psc/.git/
remote: Counting objects: 918, done.
remote: Compressing objects: 100% (523/523), done.
remote: Total 918 (delta 626), reused 581 (delta 384)
Receiving objects: 100% (918/918), 308.78 KiB, done.
Resolving deltas: 100% (626/626), done.
我只想下載並使用它。那麼有誰能告訴我如何下載這個項目?提前致謝! PS:網站鏈接是http://fishercat.sr.unh.edu/psc/installation.html#installing-the-code-from-the-git-repo
從輸出看起來像你的克隆工作。你的/ Users/kai/tmp/psc /目錄中是否有任何內容出現? –
哦,輸出是網站上的說明。我的輸出實際上類似於「密碼[email protected]:」和「密碼[email protected]:」。並且我不知道任何密碼... – Asgard
您在fishercat.sr.unh.edu服務器上有ssh帳戶嗎?指令所指的用戶名是用於登錄到該服務器的用戶名。 – Charlie