簡單記錄了下, 以免忘記。。
1. 安裝好git後,要註冊git帳號(email),我自己用了git.oschina.net的,因爲不卡....。在生存ssh公匙 ,添加到git
2. 建立倉庫目錄,如 test_git
3. cd test_git , git init 初始化
4. echo "hello" > test.txt 編輯文件test.txt,
5. git add test.txt, 添加文件, git commit -m "test" 提交。(這部可不要,只是爲了測試)
6. git remote add origin [email protected]:xxx/xxx.git 關聯遠程倉庫
7. git pull origin master 此時已經有遠程庫在你本地了。。。