兩部學會用Git並鏈接GitHub

第一次使用:
第一步、產生驗證公鑰:
	cd ~/.ssh
	ssh-keygen -t rsa -c "[email protected]"
	將 *.pub 文件的內容保存到github.com中的ssh-key
	驗證:ssh -T [email protected]
	(在github.com中創建repository)


第二步、cd ~/test/ (任意你的項目目錄)
git init
git add README.rd	(假設README.rd已經存在)
git commit -m "備註"
git remote add origin [email protected]:IoveSunny/test.git
git push -u origin master

第二次以後使用只需要:
	git add 新文件或改動文件
	git commit -m "備註"
	git push -u origin master


其他學習:
1、一個很不錯的在線教學git,是一個練習git命令, GitHub官方的互動教程:
http://try.github.io


2、Pro Git (深入學習Git)
http://git-scm.com/book/zh/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章