使用git过程中遇到的问题:导出文件是不能正常导出,需要更改终端的字符显示列数 set | grep COLUMNS
正常如下:
git diff --stat v.m.4.add.girl.weather 4e7e05aef
templates/templates/activity/2014/award/index/index_index.php | 414 +++++++
templates/templates/activity/2014/award/index/index_index.php.bak | 439 ++++++++++
www_award_site/activity/2014/award/action/index/index.php | 90 +++++
异常如下:
git diff --stat v.m.4.add.girl.weather 4e7e05aef > /tmp/a
cat /tmp/a
.../activity/2014/award/index/index_index.php | 414 ++++++
.../activity/2014/award/index/index_index.php.bak | 439 ++++++++++
.../activity/2014/award/action/index/index.php | 90 +++
解决方法:
you would have to add export COLUMNS=200
after the quoted shopt -s checkwinsize
or at the very end of .bashrc
.
http://askubuntu.com/questions/219547/how-do-i-get-more-than-80-columns-in-command-line-mode