问题一:

当push代码上去仓库时,出现

! [rejected]        master -> master (fetch first) error: failed to push some refs to 'https://github.com/Jierism/MyLocations.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by 。。。

解决:

 git push -f
git pull
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git pull

详细参考:http://blog.csdn.net/chain2012/article/details/7476493

问题二:

push代码,插入注释git commit -m "注释语句"时,出现

On branch master Your branch is ahead of 'origin/master' by 2 commits.   (use "git push" to publish your local commits) nothing to commit, working directory clean。。。

解决:

 git pull --rebase

再继续push

问题三:

push代码,输入git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git,出现

fatal: remote origin already exists

解决:

 git remote rm origin
接着再输入一次地址就OK

最新文章

  1. iOS 10 推送的简单使用
  2. MapWinGIS.ocx 注册
  3. 处理数组的forEach map filter的兼容性
  4. 【JAVA】Spring 数据源配置整理
  5. iOS开发UI篇—IOS开发中Xcode的一些使用技巧
  6. ORACLE_簽核PROC帶游標
  7. oracle 查询 当前最大时间的value的值
  8. hdu-acm steps Max sum
  9. hdu2457:DNA repair
  10. iwebshop插件的操作
  11. canvas雪花
  12. jQuery 事件冒泡
  13. React中路由的基本使用
  14. VS中的调试相关的技巧
  15. cf711D. Directed Roads(环)
  16. 软件工程实践-git的使用
  17. elasticSearch nested exist与missing查询
  18. Python urllib2 模块
  19. BETA版本前冲刺准备
  20. AtomicIntegerArray数组类型类

热门文章

  1. Java EE (14) -- SSH配置
  2. [转] Asp.net Report Viewer 简单实例
  3. LINUX启动ORACLE监听和服务
  4. Android SDK Manager 更新代理配置 ,蛋碎了
  5. ubuntu鼠标突然不能使用的解决方法
  6. hisi平台mii网络模式和rmii网络模式的uboot制作
  7. 11g 重建EM 报ORA-20001: SYSMAN already exists
  8. 国内外开源与 SaaS ,团队协作平台、项目管理工具整理
  9. WebStorm2016.1 破解 激活
  10. php 解决微信昵称emoji表情插入MySQL报错