自己写了个简单的php框架, https://github.com/szxiaokang/simpleframework
想上传到github, 所以学习了git的基本命令
记录一下, 方便以后使用, 目前仅用到了这些, 以后若用到其他的再更新
参考:http://www.open-open.com/lib/view/open1423810370232.html
添加:
1 生成id_rsa.pub ssh-keygen -t rsa -C "273030282@qq.com"
2 将 C:\Users\kangyun\.ssh\id_rsa.pub 文件内容加入到github.com/user/project 中
3 在要上传的项目文件夹右击->Git Init Here
4 项目文件夹右击->Git Bash
5 上传到github 命令
git remote add origin git@github.com:username/pro.git
git pull git@github.com:username/project.git
git add .
git commit -m "maven 示例程序"
git push git@github.com:username/project.git
修改:
git add .
git commit -m "修改说明"
git push git@github.com:username/project.git
删除文件:
git rm filename
git commit -m "删除说明"
git push git@github.com:username/project.git