Studing Git
来源:互联网 发布:wan微型端口ip感叹号 编辑:程序博客网 时间:2024/06/04 21:46
如何查看一个文件的历史记录:
gitk filename //调用外部工具查看历史,非常详细
git diff filename //查看文件的改动
git log filename //只能查看这个文件的log
如何设置自动merge:
当向Xcode添加,删除文件时,.pbxproj文件总是需要手动merge,而且一般是同时留下双方的改动。我们可以可以设置自动merge来解决这个问题。
在git的root文件夹下增加后缀为..gitattributes的文件,在文件中添加
*.pbxproj binary merge=union则,git会自动以二进制的方式把双方的改动同时保存下来,这会大大减少手动merge的时间。
同时,如果双方同时改动.pbxproj文件的相同字段时也没有问题。(亲测过-- 好像有问题,不推荐使用)
Ref:Xcode and git: bridging the gap
- git fetch --prune-p, --pruneAfter fetching, remove any remote-tracking branches which no longer exist on the remote.
修改最近一次的commit message:
git commit --amend -m "new message"
查看最近修改的branch:
git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes
- Studing Git
- studing
- Studing Day1
- Studing Day2
- Studing Day3
- compass in studing
- RSA studing 'n reversing
- Constraint of Oracle studing
- mine makefile studing processing
- studing method for linux
- Notice your ways of studing
- good site for studing English
- Notes for studing Java - Development preparation
- studing国内最大的在线知识交流平台,火爆上线啦!
- git
- git
- Git
- Git
- Struts2 convention-plugin实现零配置
- 使用隐藏iframe实现无刷新上传文件
- LPIC认证
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
- YUV 和 YCbCr 的差别
- Studing Git
- 人脸识别算法综述
- JXL 导出EXCEL 表格设置 公式添加相关 .
- 枚举 poj1012
- 微软面试题 经典测定 (1) (参考答案)
- 逐浪软件六周年大型有奖征文揭晓
- CGAffineTransform
- 【从应用层到Framework】移动网络开启关闭数据访问流程
- Yii连接mssql 数据库配置