记事本

1.ros.sh

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116
sudo apt-get update
sudo apt-get install ros-indigo-desktop-full
sudo rosdep init
rosdep update
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get install python-rosinstall

2.github

配置ssh公钥
a、首先在本地生成ssh公钥

  1. ssh-keygen -C 'your emaildress' -t rsa

如:ssh-keygen -C 'dongyuchi@gmail.com' -t rsa
会在用户目录~/.ssh/下建立相应的密钥文件
可以使用ssh -v git@github.com命令来测试链接是否畅通

  1. ssh -v git@github.com

b、上传公钥至github
在账户的profile里,选择SSH KEYS 选项,然后Add SSH Key,将~/.ssh/id_rsa.pub中的内容复制进去,上传。
上上传成功后,会收到确认邮件。 可以使用ssh -v git@github.com命令来测试链接是否畅通。
管理项目
a、建立仓库
创建一个新目录,用来作为仓库目录。进入目录,运行git init命令,进行仓库初始化,完成后,会发现目录下多了一个.git隐藏文件。

  1. git init

b、git配置

  1. git config --global user.name "Your Real Name"
  2. git config --global user.email you@email.address

c、添加文件

  1. git add ./

这是添加目录下所有文件,如果只是添加某个文件,就将文件名字列出,如果添加目录,则可以用*代替。
d、commit项目

  1. git commit -m 'my first version

-m后面是对该项目的描述。
e、上传项目

  1. git remote add origin git@github.com:你的github用户名/你的github项目名.git
  2. git push origin master

在该步骤执行push时,有可能系统要求你先pull一下,那就先pull一下,再push

记事本》有一个想法


Warning: Undefined variable $output in /www/wwwroot/aotxland.com/wp-content/plugins/wp-alu/functions.php on line 21

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注