在做安卓課程設計的時候
發現github的客戶端驚奇的好用,只要熟悉幾個操作就好了
作爲一個工具,用的時候去查查就夠了
原理什麼的就不介紹了
下面放幾個學習過程中的參考資料
對於初學者而言
官方的Hello World教程反而是最好用的
參考資料
- github官方新手教程 看這個就夠了
- 廖雪峯Git教程 聽說不錯
- 進階 pro git 多半不會看
- Git版本控制軟件結合GitHub從入門到精通常用命令學習手冊
- 如何正確接收 GitHub 的消息郵件
其他
亂七八糟
花裏胡哨的 好資源
還有很多,
但 管那麼多幹什麼,夠用就好
===========16.12.22更新=======
在ubuntu上安裝git,配置用戶名郵箱
sudo apt-get install git
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
cd進入項目根目錄,初始化git
git init
將當前目錄中的內容添加到 git創建好的空項目中
git add .
添加要忽略的文件名單vi .gitignore
文件內容如下
*.pyc
*.db
*.sqlite3
執行下面命令
git add .gitignore
本地提交代碼
git commit -m "init project"
連接github
1.use ls -al ~/.ssh
to see if there already have some SSH keys, if nothing, go ahead.
2.Generating a new SSH key and adding it to the ssh-agent:
ssh-keygen #連續回車3次,使用默認選項
eval "$(ssh-agent -s)" # start the ssh-agent in the background 如果不添加到ssh-agent中,就算開着ss,系統代理改成了socks代理,也無法瀏覽網頁
ssh-add ~/.ssh/id_rsa # add your SSH key to the ssh-agent
3.Adding a new SSH key to your GitHub account, copy ~/.ssh/id_rsa.pub and paste in GitHub’s SSH key list.
4.Test: ssh -T [email protected]