git push xxx.git failed

git push xxx.git failed

Error content

[root@db01 /opt/work-plan/greatdb/发版测试/5.0.4/测例]# git push   http://gitlab.greatopensource.com/database-test/work-plan.git
Username for 'http://gitlab.greatopensource.com': jiaona.chen
Password for 'http://[email protected]': 
To http://gitlab.greatopensource.com/database-test/work-plan.git
 ! [rejected]        master -> master (non-fast-forward)
error: 无法推送一些引用到 'http://gitlab.greatopensource.com/database-test/work-plan.git'
提示:更新被拒绝,因为您当前分支的最新提交落后于其对应的远程分支。
提示:再次推送前,先与远程变更合并(如 'git pull ...')。详见
提示:'git push --help' 中的 'Note about fast-forwards' 小节。

Reason for error

Use the git push --depth=1 option before pushing, resulting in the previous files not being git down.

Solution

 $ git push -u origin +master

cmake compilation process

PS: It is best to use a non-root user before compiling.

  1. git clone source code
cd /home/chenjiaona/pquery
git clone --depth=1 https://github.com/Percona-QA/pquery.git
  1. Create a build directory and compile in the build directory
mkdir build
cd build
cmake .. -DBASEDIR=/usr/local/mysql80 -DMYSQL=ON

# Use the compiled binary file /ussr/local/mysql80
make && sudo make install

Guess you like

Origin blog.csdn.net/jiaona_chen123/article/details/113514872