
Git
程序猿明天
享受编码的过程,享受成功的喜悦...
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Git push 报错 ! [rejected] master -> master (fetch first)
报错信息如下: ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://gitee.com/XXXX/XXXX.git' hint: Updates were rejected because the remote contains work that ...原创 2018-07-25 17:57:24 · 666 阅读 · 1 评论 -
Your branch and 'origin/master' have diverged, and have 1 and 1 different commits each, respectively
报错信息: Your branch and 'origin/master' have diverged, and have 1 and 1 different commits each, respectively. (use "git pull" to merge the remote branch into yours) 解决方法: 1、 git rebase o...原创 2018-07-25 18:05:29 · 3724 阅读 · 0 评论 -
Push to origin/master was rejected 错误
使用idea git push 提交的时候 报 Push to origin/master was rejected 解决方案如下: 1. 切换到自己项目所在的目录,右键选择Git Bash Here 也可以在Idea中可以使用Alt+F12 命令 或者 直接点击 Terminal 2、依次输入以下命令 git pull git pull origin ...原创 2019-02-24 18:58:23 · 1474 阅读 · 0 评论 -
一文 读懂 Git 常用命令
1. 自报家门 git config --global user.name SLIGHTLEE git config --global user.email [email protected] 查看配置 git config --list 2. 创建版本库 进入到 E盘目录 cd e:/ 创建文件夹 mkdir sho...原创 2019-04-28 23:28:32 · 242 阅读 · 0 评论