標籤:
1、安裝git bash
msysgit(http://code.google.com/p/msysgit/)
2、建立SSH key
右鍵點擊目錄,
ssh-keygen.exe -C "[email protected]" -t rsa
產生的key存放位置:
SSH key的原理:
3、拷貝公開金鑰到github
測試一下公開金鑰是否可用
ssh -T [email protected]
4、從github拷出你的代碼
拷出
$git clone git://github.com/schacon/simplegit.git
5、開始向github提交或提交 5.1 配置 git config --global user.name "Your Name" git config --global user.email [email protected] 5.2 建立Repository 1 mkdir clrs2 cd clrs3 git init4 touch README5 git add README6 git commit -m ‘first commit‘7 git remote add origin [email protected]:your_name/clrs.git8 git push origin master 5.3 提交已經存在的Repository 1 cd existing_git_repo2 git remote add origin [email protected]:your_name/clrs.git3 git push origin master 參考:http://blog.lmlphp.com/archives/7/The_use_tutorial_of_git_bash_and_how_to_start_with_githubhttp://www.cnblogs.com/zdz8207/archive/2012/04/27/git-github.html
Windows平台使用git bash管理github中的工程