Mercurial command in bitbucket
来源:互联网 发布:网购商城农村淘宝 编辑:程序博客网 时间:2024/06/03 21:15
hg help [command] //eg: hg help qnew
hg st // 查看local workspace与local repository之间的的所有更改
hg in // 查看 center repository 上可更新的changeset
hg out // 查看 local repository上 可push的changeset
hg ci -m "comment" // 提交本地修改到local repository
hg update // 应用local repository的更新到本地
hg heads // 查看head的数量,如果多于一个则需要merge
hg merge // merge多个heads
hg push // 提交本地更新到center repository
hg log -l 5 // 查看最新的5个changeset
hg revert -r 12345 --all // revert版本12345之后所有的修改,注:版本12345本身的修改不会被revert
【Extensions】
常用的extensiongs, 包括q, purge, pull rebases等, 修改.hg文件夹中的hgrc文件,如下:
[paths]
default = [repository path]
[extensions]
hgext.mq=
hgext.purge=
rebase=
常用命令:
QUEUE:
hg qnew "comment" patch_name.diff
hg qpop // 把最上面的的patch移出队列
hg qpush // 应用一个patch
hg qremove patch_name //删除一个队列,只有被pop出来的patch才能被删除
hg qser // 查看所有已有的patch
hg qapp // 查看所有被应用的patch
hg qfinish -a // finish 之后的patch才能被提交
hg qimport "C:\test.diff" // 导入指定patch文件,之后需要执行qpush才能把新导入的queue应用上
hg qimport -r 12345 // 把已经finish的changeset再变回queue,-r后的参数为changeset的版本号
OTHER:
hg purge // 删除所有新增的文件
hg pull --rebase // 本地有q的时候使用,从center repository上得到最新更新,并在更新的代码上应用本地的queues
- Mercurial command in bitbucket
- bitbucket
- bitbucket
- bitbucket
- Bitbucket
- Mercurial
- Mercurial
- Mercurial
- setting up central mercurial server in ubuntu
- A Guide to Branching in Mercurial
- How to use git in general and bitbucket in particular
- How to use bitBucket with EGit in Eclipse,如何在Eclipse中使用bitbucket远程仓库
- How to fix "Case folding collision" in Mercurial
- find command in Unix
- Dos command in windows
- Date command in Linux
- Invoke-Command in PowerShell
- svn command in Ubuntu
- Android高手进阶教程(十七)之---Android中Intent传递对象的两种方法(Serializable,Parcelable)!
- Android进阶2之Activity之间数据交流(onActivityResult的用法)
- California Dream--加州实习面经
- poj3469 DINIC模板(vector+前向星)
- 算法概论思维导图
- Mercurial command in bitbucket
- 13种常用按钮,文本框
- 黑马程序员——IO流的总结与功能分析(一)
- 基于DAD方法的IBM敏捷开发过程中的敏捷管理
- Lmod安装(environment module system )
- Pulse Width Modulation (PWM)
- 分布式机器学习的故事
- java.util.concurrent.ArrayBlockingQueue
- Python自定义函数的创建、调用和函数的参数详解