一:基本使用
1.要了解下git的基本概念 :它有本地库与远程库
2.安装git
下载安装tortoisegit: http://code.google.com/p/tortoisegit/ git操作工具,调用msysgit进行版本控制
下载安装msysgit:http://msysgit.github.com/
3.设置环境
3.1 选择TortoiseGIt->Settings->Git-->填入Name,Email
3.2 选择TortoiseGit->puttygen-Generate 生成公钥、私钥。导出私钥文件(.ppk),复制公钥。
3.3 进入github.com 设置账号在sshkey选项,将复制后的公钥黏贴到key输入框保存
3.4 选择TortoiseGit->pageant 把之前导入的私钥文件(.ppk)导入
4.提交版本到github
4.1 右键git create repository here
二:相关问题
提交空文件夹
find . -type d -empty -exec touch {}/.gitignore \; git add folder-name