跳到主要內容

Git 初始成功了

哭泣了,感動!

Step 1 >> terminal 打開終端機
Step 2 >> 輸入「ssh-keygen -t rsa -C "你的email"」
Step 3 >> When it asks you for the file, just hit Enter.
Step 4 >> 輸入密碼,不會有任何反應,正常
Step 5 >> 輸入密碼第二次,碓認與第一次相同
Step 6 >> Use Notepad to open up the .ssh/id_rsa.pub file you just generated and copy the all of the contents of that file.

cd .ssh
vi id_rsa.pub

複製下來就對了,再貼到 assembla : Manage SSH Keys

以上取得 SSH Keys 已完成,接下來要去 create Git repository。

mkdir arieltest
cd arieltest
git init
touch README
git add README
git commit -m "ariel first commit"

完整做完,理輪上初始化好 Git,同時在家目錄底下新增了「arieltest」資料夾,並在此資料夾裡新增了一 README 檔案。

接下來就 push repository 至 assembla 上。

git remote add origin git@git.assembla.com:arieltest.git
git push origin master

到這個步驟會要求你輸入稍早設定的密碼。

相關設定可以參考:https://www.assembla.com/code/arielmember/git/repo/instructions?empty=true


--

留言