git
git系列
RabbitsInTheGrass
一枚无聊的程序猿!
展开
-
Untracked Files Prevent Checkout
git分支切换 Untracked Files Prevent Checkout新起的项目在切换master分支到工作分支时,出现下图的问题:Untracked Files Prevent CheckoutMove or commit them before checkout网上的解决办法:大多都是执行git clean -f ,将所有untracked file 一次性删除。...原创 2019-11-15 10:36:13 · 16706 阅读 · 24 评论 -
idea上传代码到GitHub报错Push rejected: Push to origin/master was rejected
idea上传代码到GitHub报错Push rejected: Push to origin/master was rejected ideapush代码到GitHub的时候出现报错,提示Push rejected: Push to origin/master was rejected。原因: 本地代码代码版本与远程代码版本不一致导致的(这种问题一般发生在GitHub上为新建的代码仓库,...原创 2019-10-07 23:28:38 · 580 阅读 · 0 评论 -
git安装以及与idea整合
git安装以及与idea整合1. 安装及配置git2. IDEA中设置3. git的使用1. 安装及配置git官网地址:https://git-scm.com/download/win安装完成后配置git:git config --global user.name "name"git config --global user.email "email@example.com"2. I...原创 2019-10-07 22:33:27 · 304 阅读 · 0 评论 -
idea的update提示Can't Update No tracked branch configured for branch master or branch...
idea的update提示Can't Update No tracked branch configured for branch master or branch...问题:idea更新项目报错。解决办法:在idea中alt+F12打开Terminal,执行git branch --set-upstream-to=origin/master master 命令,再重新update即可。...原创 2019-10-07 23:36:41 · 1358 阅读 · 0 评论