git init 初始化
git add . 把当前目录下的所有文件都提交到git
git commit -m
"GitHelloWorld first commit" 提交到缓冲区
git clone http:
//git
.oschina.net
/csen66/weixin-client-for-java
.git 克隆你的项目
git status 检查当前文件的状态
git push 确认提交
推送单个更新的文件
查看哪里文件做了修改
git status -s
添加到分支
git add string.c
说明这次修改的内容
git commit -m 'Changed char pointer to const char pointer'
推送这次变化
git push origin master
推送所有修改的文件
git status
git add --all
git commit -m '修改说明'
git push origin master
删除版本库中已有的文件
先删除文件管理器中的文件然后同步到版本库中
git add --all
git commit -m "remove WEB-INF"
git push -u origin master
网址一:
http://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E8%AE%B0%E5%BD%95%E6%AF%8F%E6%AC%A1%E6%9B%B4%E6%96%B0%E5%88%B0%E4%BB%93%E5%BA%93
地址二:
http://my.oschina.net/dxqr/blog/134811
git 常用命令
http://www.cnblogs.com/gabo/p/3902644.html
http://justcoding.iteye.com/blog/1830388