1.仓库转移代
git clone http://url
git push --mirror http://192.xxxxx
git clone http://192.xxxx
2.commit
git commit -m "modify"
3.push
git push origin master
4.记住git账号和密码
git config credential.helper store
5.比较2个不能版本, 并打包
git diff version1 version2 --name-only | xargs zip ../name.zip
6.记录账号密码, 修改.git/config 添加
[user]
email = nn@nn.com
name = nickname
[credential]
helper =store
7.git 导出日志
git log --pretty=format:"%cn###%s###%H" > ../log.log
format参数说明
%H 提交对象(commit)的完整哈希字串
%h 提交对象的简短哈希字串
%T 树对象(tree)的完整哈希字串
%t 树对象的简短哈希字串
%P 父对象(parent)的完整哈希字串
%p 父对象的简短哈希字串
%an 作者(author)的名字
%ae 作者的电子邮件地址
%ad 作者修订日期(可以用 -date= 选项定制格式)
%ar 作者修订日期,按多久以前的方式显示
%cn 提交者(committer)的名字
%ce 提交者的电子邮件地址
%cd 提交日期
%cr 提交日期,按多久以前的方式显示
%s 提交说明