归档:2018年9月
-
git如何将本地仓库推送到远程仓库上
2018-09-14 当我们本地仓库的项目开发完成需要将本地仓库内容推送到远程仓库上去,这个时候该如何操作呢?1、先需要将本地仓库关联到远程库:git remote add origin <url>。如:$ git remote add origin git@gitee.com:Mr.bai/Flyway_demo.git2、获取远程仓库并将其与本地仓库进行合并(如果远程库不为空必须做这一步,否则后面的提交会失败)$ git pull –rebase origin master把本地仓库的内容推送到远程,使用git push 命令。实际上是把当前分支master推送到远程。执行此命令后会要求输入用... -
druid报异常 “sql injection violation, part alway true condition not allow”的解决方案
2018-09-14 使用durid连接池组件,今天在使用Flyway的时候发现在执行SQL时抛出了一个异常:Caused by: java.sql.SQLException: sql injection violation, comment not allow : CREATE TABLE `test`.`schema_version` ( `installed_rank` INT NOT NULL, `version` VARCHAR(50), `description` VARCHAR(200) NOT NULL, `type` VARCHAR(20) NOT N... -
git删除remote
2018-09-14 1、在项目中有两个或多个remote,如何删除多余的remote$ git remote -v FlywayDemo git@gitee.com:Mr.bai/Flyway_demo_test.git (fetch) FlywayDemo git@gitee.com:Mr.bai/Flyway_demo_test.git (push) origin git@gitee.com:Mr.bai/Flyway_demo.git (fetch) origin git@gitee.com:Mr.bai/Flyway_demo.git (push)删除其中指定的FlywayDemo,方法为:... -
关于PL/SQL查询结果中出现中文乱码的问题