常用命令行

mongoDB - MAC 安装
brew uninstall mongo


nodejs - 杀死进程
pkill node (或 killall node)


mysql - Field xxx doesn’t have a default value
SET @@GLOBAL.sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";

SELECT @@global.sql_mode;


nexus - 上传文件

mvn deploy:deploy-file -DgroupId=com.linxcool.util -DartifactId=apktool -Dversion=2.2.1 -Dpackaging=jar -Dfile=apktool.jar -Durl=http://xxx.xxx.xxx:8081/repository/javautil/ -DrepositoryId=linxcool


git - submodule

// 增加子模块
git submodule add url local


// 检出子模块
git submodule init
git submodule update


// 修改子模块前需要切换至master
cd 子目录位置
git checkout master

// 子模块按正常方式提交

// 更新主项目对子模块的commit id
cd 主项目位置
git add -u
git commit -m 'update commit id'
git push

// 其他
git submodule (在主项目中查看子模块情况)
git status
git diff

你可能感兴趣的:(常用命令行)