1.从代码仓库克隆源代码:
$ mkdir bzrobot_ws
$ cd bzrobot_ws
$ hg clone http://192.168.15.88/hg/bzrobot_src src
$ catkin_make
$ source devel/setup.sh
(IP 请根据实际实时更新)

2.将本地代码推到代码仓库:

wang@wang-Rev-1-0:~/bzrobot_ws/src$ hg pull http://192.168.15.88/hg/bzrobot_src

wang@wang-Rev-1-0:~/bzrobot_ws/src$ hg update

zhangzhen@Lenovo-B460:~/bzrobot_ws/src$ hg add
zhangzhen@Lenovo-B460:~$ gedit .bashrc

在最后一行加入:export HGUSER="WangCaiJie"

zhangzhen@Lenovo-B460:~$ source .bashrc
zhangzhen@Lenovo-B460:~/bzrobot_ws/src$ hg commit -m"Modifying urdf and gazebo"
zhangzhen@Lenovo-B460:~/bzrobot_ws/src$ hg push

3.用gh log查看更新信息
wang@wang-Rev-1-0:~/bzrobot_ws/src$ hg log

4.一次上传记录

1、按上下箭头键
2、history|more分页显示
3、vi /etc/profile找HISTSIZE=1000,说明你最多能存1000条历史记录。
4、!!执行最近执行的命令
5、history|head或者history |tail看记录的前几条或后几条
6、!100 执行第100条记录
7、fc -l 和history一样
8、CTRL+r输入字符ls查询包含ls的命令
9、history -c 清除以前的记录
http://www.wallcopper.com/linux/593.html

1773  cd ~/bzrobot_ws3
 1774  ls
 1775  cd src
 1776  hg status
 1777  ls
 1778  cd bzrobot/
 1779  ls
 1780  cd ..
 1781  ls
 1782  find . -name *~
 1783  find . -name *~ -exec rm {} \;
 1784  find . -name *~
 1785  ls
 1786  cd bzrobot/
 1787  ls
 1788  cd ..
 1789  hg status
 1790  hg addremove
 1791  hg status
 1792  hg pull
 1793  hg update
 1794  hg resolve
 1795  diff
 1796  hg resove
 1797  hg resolve
 1798  hg resolve --all
 1799  cd bzrobot/bzrobot_comm/
 1800  ls
 1801  hg merge CMakeLists.txt
 1802  ls
 1803  hg resolve CMakeLists.txt
 1804  hg resolve CMakeLists.txt --mark
 1805  gedit CMakeLists.txt
 1806  hg resolve CMakeLists.txt
 1807  cd scripts/
 1808  hg resolve rs232_encoder_pub_motor_sub.py --mark
 1809  gedit rs232_encoder_pub_motor_sub.py
 1810  hg resolve --help
 1811  hg status
 1812  hg addremove
 1813  ls
 1814  hg update
 1815  hg status
 1816  hg commit -u"Wang CaiJie" -m"Modify Rs232 encoding publisher, add stm32 usb to uart encoder publisher"
 1817  hg resolve -all
 1818  gedit rs232_encoder_pub_motor_sub.py
 1819  hg resolve -m rs232_motor_sub.py
 1820  hg resolve -m stm32_usbtouart_encoder_pub.py
 1821  hg status
 1822  hg resolve
 1823  hg resolve --help
 1824  hg resolve --help -a
 1825  hg resolve -a
 1826  hg log
 1827  hg commit -u"Wang CaiJie" -m"Modify Rs232 encoding publisher, add stm32 usb to uart encoder publisher"
 1828  hg log
 1829  hg push

mkdir codes
cd codes
ls
hg clone http://192.168.15.88/hg/bzrobot2 src
ls
cd src
ls
cd ..
ls
catkin_make
ls
cd src
ls
hg addremove
hg status
ls
hg commit -uWangCaiJie -m"Upload bzrobot_comm and bzrobot_comm_src"
hg status
hg push

ls
cd ..
catkin_make
cd src
hg addremove
hg commit -uZhangzhen -m"Upload bzrobot_msgs"
hg push
ls
cd ..
catkin_make

hg下拉和上传代码的更多相关文章

  1. git仓库下拉和上传

    git仓库比较方便,可以实现白天在公司写的代码,下班之前上传到git仓库,晚上在另一台电脑上直接下拉下来,其实感觉和开发用的svn差不多 在另一篇博客里面写到,需要先在git里面新增好仓库和成员之后, ...

  2. GitHub中开启二次验证Two-factor authentication,如何在命令行下更新和上传代码

    最近在使用GitHub管理代码,在git命令行管理代码时候遇到一些问题.如果开起了二次验证(Two-factor authentication两个要素认证),命令行会一直提示输入用户名和密码.查找了一 ...

  3. GitHub 开启 Two-factor authentication,如何在命令行下更新和上传代码

    最近在使用GitHub管理代码,在git命令行管理代码时候遇到一些问题. 如果开起了二次验证(Two-factor authentication两个要素认证),命令行会一直提示输入用户名和密码.查找了 ...

  4. [Swift通天遁地]二、表格表单-(5)实现表格下拉和上拉刷新效果

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ...

  5. winform c#绑定combobox下拉框 年度代码。

    winform c#绑定combobox下拉框 年度代码. comboBox1.Items.AddRange("});//邦定数据 comboBox1.Text = DateTime.Now ...

  6. winform dataGridView DataGridViewComboBoxColumn 下拉框事件代码

    有一个dataGridView ,有一列是DataGridViewComboBoxColumn .我用动态绑定,在绑定数据的时候.我们也给这一列绑定数据 在dataGridView的RowsAdded ...

  7. 基于iscroll实现下拉和上拉刷新

    在原生APP的开发中,有一个常见的功能,就是下拉刷新的功能,这个想必大家都是知道的,但是原生APP的开发,有一个很大的问题就是,你每次更新一些功能,就要用户重新下载一次版本,尤其是在iOS系统中,新版 ...

  8. HTML+CSS实现导航栏二级下拉菜单完整代码

    工具是vs code 代码如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset ...

  9. CheckedListBox与下拉框联动代码

    private void yewubind(string id) { //给业务类型下拉框绑定业务类型数据 DataTable dtyewu = sb.SelectLast(id, 0); bool ...

随机推荐

  1. 167. Two Sum II - Input array is sorted@python

    Given an array of integers that is already sorted in ascending order, find two numbers such that the ...

  2. CF-1096C Polygon for the Angle

    CF-1096C Polygon for the Angle https://codeforces.com/contest/1096/problem/C 题意:给一个角度ang(1<=ang&l ...

  3. 【搜索 ex-BFS】bzoj2346: [Baltic 2011]Lamp

    关于图中边权非零即一的宽度优先搜索 Description 译自 BalticOI 2011 Day1 T3「Switch the Lamp On」有一种正方形的电路元件,在它的两组相对顶点中,有一组 ...

  4. 006 CSS三种引入方式

    CSS三种引入方式 一.三种方式的书写规范 1.行间式 <div style="width: 100px; height: 100px; background-color: red&q ...

  5. logstash-基础操作

    一.环境 https://www.cnblogs.com/suffergtf/p/9566145.html 1.收取日志文件到elasticsearch [root@linux-node1 logst ...

  6. Shell中各种括号的作用

    一.小括号,圆括号() 1.单小括号 () ① 命令组.括号中的命令将会新开一个子shell顺序执行,所以括号中的变量不能够被脚本余下的部分使用.括号中多个命令之间用分号隔开,最后一个命令可以没有分号 ...

  7. 我的Python分析成长之路9

    pandas入门 统计分析是数据分析的重要组成部分,它几乎贯穿整个数据分析的流程.运用统计方法,将定量与定性结合,进行的研究活动叫做统计分析.而pandas是统计分析的重要库. 1.pandas数据结 ...

  8. 生物信息学练习2- Biom-format

    The Biological Observation Matrix (BIOM) format http://biom-format.org/ biom-format有两种方式安装: 1. pytho ...

  9. [转]ARM平台下独占访问指令LDREX和STREX

    参考:ARM平台下独占访问指令LDREX和STREX的原理与使用详解 全文转载如下: 为了实现线程间同步,一般都要在执行关键代码段之前加互斥(Mutex)锁,且在执行完关键代码段之后解锁.为了实现所谓 ...

  10. JavaScript注释

    JavaScript注释有两种方式: 1.单行注释. 2.多行注释. 单行注释 单行注释以“//”开头. <script type="text/javascript"> ...