Mercurial使用笔记(2)
来源:互联网 发布:剑三商城怎么导入数据 编辑:程序博客网 时间:2024/06/04 03:39
记录使用Mercurial中遇到的问题和疑惑(2)
命令:
hg status 简写: hg st
查看working copy与local repository之间的的所有更改引用:http://anotherwayaround.blog.163.com/blog/static/1900662202012326104313552/
Status is a command to check Status is a command to check what the pre-commit status. It tells you whether files are tells you whether files are (A)dded, (R)emoved, (M)odified among other things. manifest command too. So the status command gives some nice information before commit. (在每次提交前,我们都应改执行下这个命令,看下改动了那些内容。)
hg diff
查看working copy与local repository之间的的所有更改的详细内容.
hg diff [File] # What’s the difference between the repo. and the working copy.
hg diff -r xx [File] # How is the working copy different form revision 5. (从版本xx之后,file文件改动内容)
hg diff -r 0:1 [File] 两个版本之间的改动
(对于diff命令,我感觉还是通过SourceTree等UI工具看起来会比较好)
hg cat
首先, 一条简单的 hg cat 命令可以用来显示一个文件的任何历史版本.
hg cat -r xx FILE # Print (cat) file as it were in revision xx.
help
hg cat –help 查看命令帮助
hg help init 同样可以查看命令帮助
hg in [摘自][1]
// 查看remote repository 上可更新的changeset
hg out [摘自][1]
// 查看local repository上 可push的changeset
参考:
[1]: http://bucunzai.net/hginit/groundup/#hg-cat
[2]: http://anotherwayaround.blog.163.com/blog/static/1900662202012326104313552/
[3]: http://www.jemander.se/MercurialByExample.pdf
- Mercurial使用笔记(2)
- Mercurial使用笔记
- Mercurial使用笔记(3)
- Mercurial使用笔记(4)
- Mercurial 学习笔记
- 使用Mercurial Queues
- mercurial安装使用
- hg(Mercurial)使用参考
- Mercurial使用简单介绍
- Mercurial: hg使用
- hg(Mercurial)使用参考
- mercurial hg 使用
- centos7下Mercurial (hg)3.9.2版的安装配置及在sts使用mercurial插件clone,pull,commit,push
- Mercurial
- Mercurial
- Mercurial
- Mercurial与TortoiseHg使用入门教程
- Mercurial与TortoiseHg使用入门教程
- Selective Search for Object Recoginition
- java中方法的参数传递机制
- linux下查找某一类型的文件方法
- SQL Server 无法删除发布服务
- 定时任务总结
- Mercurial使用笔记(2)
- 在Struts2的Action中获得request response session几种方法
- 学习笔记之linux多线程和多进程优缺点
- html+css报纸排版中的那些事
- 【数据库】oracle数据库对象---->视图
- 算法实现篇之动态规划-Fibonacci
- c++接受键盘输入处理
- Linux查看CPU和内存使用情况
- 学习笔记之使用类模板遇到的重载问题