1、windows下,忽略配置文件.gitignore 只能通过gitbase使用命令创建
2、git add命令产生警告
warning: LF will be replaced by CRLF in src/cnc/plc/lad/ladlinewidget.h.
The file will have its original line endings in your working directory.
解决 取消Git的自动替换 换行方式 的选项
git config --global core.autocrlf false
3、win7 Qt使用git
下载git windows版本
安装在C:\Program Files\Git (当然可以安装在别的地方)
在QtCreator的工具->选项->版本控制->git 设置
附加在系统PATH之前:C:\Program Files\Git\cmd
另外修改系统环境变量PATH,增加这两项: C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;
搞定!
至于使用Qt中git的图形菜单不顺时,直接打开gitbase用命令操作就行