2016-09-17 93 views
0

[這是我在Stackoverflow上的第一個問題,請不要打我,我是一個初學者]。我有一個任務要做,我得到了如何去做的說明。可悲的是,我得到的指示並不真正起作用。如何從頭開始使用GitHub進行實際工作?

的指示說:

  1. 打開終端
  2. 配置github上(再有就是,我應該從VIM型

    git config --global user.name "name and surename" 
    git config --global user.email "email addres" 
    
  3. 更改編輯確切的指令:

    git config --global core.editor notepad 
    git config --global format.commitMessageColumns 72 
    
  4. 在驅動器中找到要將克隆回購的空間。他們建議位於桌面的文件夾「prework」。

我所得到的是這樣的:

[email protected] MINGW64 ~ (master) 
$ git config --global user.name "My-Name-Here" 

[email protected] MINGW64 ~ (master) 

$ git config --global user.email "[email protected]" 

[email protected] MINGW64 ~ (master) 
$ git config --global core.editor notepad 

[email protected] MINGW64 ~ (master) 
$ git config --global format.commitMessageColumns 72 

[email protected] MINGW64 ~ (master) 
$ cd prework 
bash: cd: prework: **No such file or directory** 

[email protected] MINGW64 ~ (master) 
$ C:\Users\HP\Desktop\prework 
bash: C:UsersHPDesktopprework: command not found 

[email protected] MINGW64 ~ (master) 
$ 

我有沒有做過一些非常基本的,在一開始的感覺。正如你所看到的,我甚至沒有從終端得到任何反應。這是正常的嗎?好嗎?

+0

你得到的反應:它說,'prework'目錄不存在。你有沒有創建它,或'git clone'來獲得一個現有的項目? –

+0

我想你必須在桌面上自己創建文件夾。之後,你可以克隆它的文件夾內。 –

+0

我在桌面上創建了一個文件夾「prework」,並確保這個名字是用小寫字母寫的(我認爲它很重要)。 –

回答

0

好的,我找到了答案。一個朋友告訴我鍵入「LD」,檢查當前目錄下的所有文件,然後嘗試

[email protected] MINGW64 ~ (master) 
$ cd Desktop 

[email protected] MINGW64 ~/Desktop (master) 

$ cd prework 

[email protected] MINGW64 ~/Desktop/prework (master) 
$ 

這個工作:-)