原创

gitpush时报错

leixiaochen@DESKTOP-7UVHO7E MINGW64 ~/Desktop/MCMS (master)
$ git push origin master
To http://192.168.1.212/chenxiaolei/mcms.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'http://192.168.1.212/chenxiaolei/mcms.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

leixiaochen@DESKTOP-7UVHO7E MINGW64 ~/Desktop/MCMS (master)
$ git pull --rebase origin master
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 5 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
From http://192.168.1.212/chenxiaolei/mcms

  • branch master -> FETCH_HEAD
    9f8aae6..51133a1 master -> origin/master
    First, rewinding head to replay your work on top of it...
    Applying: init

leixiaochen@DESKTOP-7UVHO7E MINGW64 ~/Desktop/MCMS (master)
$ git push -u origin master
Enumerating objects: 4150, done.
Counting objects: 100% (4150/4150), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3995/3995), done.
Writing objects: 100% (4149/4149), 96.36 MiB | 16.22 MiB/s, done.
Total 4149 (delta 1015), reused 0 (delta 0)
remote: Resolving deltas: 100% (1015/1015), done.
To http://192.168.1.212/chenxiaolei/mcms.git
51133a1..4710907 master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

正文到此结束
相关文章
本文目录