情况如下: 我在ubuntu server 14.04 上面安装了gitlab,来托管项目代码.然后想通过gitlab的web hook 功能来做测试服务器代码自动化更新代码功能.现在遇到一个问题:就是我客户端在master分支上面push代码的时候,我测试服务器的代码目录并没有自动更新.我的shell脚本如下: !/bin/bash echo 'haha:::==' >> /tmp/wtz.log cd /srv/www/bfar-ng echo 'my name is gitlab'>
0. git statusOn branch masterYour branch and 'origin/master' have diverged,and have 1 and 3 different commits each, respectively. (use "git pull" to merge the remote branch into yours) 这是分支产生了分叉现象(就是你的分支和服务器的对应分支有共同基点,然后向不同方向发展) 1. git pull 它包括
在Ubuntu下运行 apt-get update命令后出现错误: The package lists or status file could not be parsed or opened sudo rm /var/lib/apt/lists/* -vf 然后: sudo apt-get update #(更新软件源)执行安装操作 sudo apt-get upgrade#(继续更新软件源)执行安装操作,应该能成功
使用python中的matplotlib 画图,show后关闭窗口,继续运行命令 在用python中的matplotlib 画图时,show()函数总是要放在最后,且它阻止命令继续往下运行,直到1.0.1版本才支持多个show()的使用.想在显示图像后继续运行相关的处理命令,或者显示一副图像后关闭它,再显示第二幅图像.如下办法: 首先搜索到:plt.close() will close current instance.plt.close(2) will close figure 2plt.cl