git 提交代码前先pull代码,否则会报如下错误

wangju@wangju-HP-348-G4:~/test/reponselogiccheck$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
wangju@wangju-HP-348-G4:~/test/reponselogiccheck$ git push
To git.5i5j.com:kaifa/reponselogiccheck.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@git.5i5j.com:kaifa/reponselogiccheck.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.
wangju@wangju-HP-348-G4:~/test/reponselogiccheck$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From git.5i5j.com:kaifa/reponselogiccheck
   2a5b889..e69bef2  master     -> origin/master
Auto-merging a.py
CONFLICT (content): Merge conflict in a.py
Automatic merge failed; fix conflicts and then commit the result.
wangju@wangju-HP-348-G4:~/test/reponselogiccheck$ ls
a.py  bb.py  testGitlab

最新文章

  1. sockaddr和sockaddr_in的区别(转载)
  2. Linux下根据进程的名字杀死进程
  3. js 调用 android 安卓 代码
  4. mac上搭建appium+IOS自动化测试环境(一)
  5. ubuntu14.04系统中virtualbox安装Oracle VM VirtualBox Extension Pack包
  6. 作业二:Git的安装与使用
  7. C# Monitor实现
  8. Linux下通过管道杀死所有与tomcat相关的进程
  9. Tomcat8 启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
  10. eclipse闪退解决
  11. 【CF671E】Organizing a Race 单调栈+线段树
  12. PHP的垃圾回收
  13. OGG_GoldenGate日常监控(案例)
  14. 每日英语:Is Bo Xilai the Past or Future?
  15. 【BZOJ 3812】 3812: 主旋律 (容斥原理**)
  16. B. T-primes
  17. 让Tomcat供外网访问
  18. krpano之背景音乐
  19. css表格
  20. 每天一个Linux命令(13):apt命令

热门文章

  1. 项目中应用到的框架和技术之一——Materialize
  2. ffplay.c函数结构简单分析(绘图)
  3. LeetCode 720. Longest Word in Dictionary (字典里最长的单词)
  4. LeetCode 438. Find All Anagrams in a String (在字符串中找到所有的变位词)
  5. Dungeon Game -- latched
  6. Database returned no natively generated
  7. oc81--copy内存管理
  8. LuaBridge
  9. 各地图API坐标系统比较
  10. ACM_无聊者序列(斐波那契数列大数取余(同余)+规律)