- 博客(6)
- 收藏
- 关注
原创 解决$ git statusOn branch masterChanges not staged for commit: (modified content, untracked content)报错
是这么个情况: $ git commit -m "message" On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) (commit or discard the unt...
2022-02-17 21:02:10
1625
原创 LeetCode学习笔记:二分查找
在写二分查找的时候,遇到了个很大的问题: 我写的代码,执行超时很严重,当时以为是这个网站出问题了,后来运行了别人写的代码 从这里可以看出,自己和别人还是很大差距的,但我思考不出差距在哪,明明语法上写得都差不多 区别有三点: 1、指针不重合,用while循环进行判断,进循环了才算mid值,可以少算几次 2、最重要的,对于内部数据结构的理解,获取数组mid值 我的做法:每次循环,都是 if (nums[mid]==target) 因为需要比三次,大,小,等,所以就要获取三次结果,就浪费...
2021-12-07 17:16:51
799
原创 fatal: refusing to merge unrelated histories 解决方法
首先是产生的原因: 今天本地创建了一个仓库(有README),把本地仓库和Github上关联以后,发现git pull,git feach提醒fatal: refusing to merge unrelated histories 上网查到原因是两个分支是两个不同的版本,具有不同的提交历史 1、$git pull origin master --allow-unrelated-histories 2、add commit push ...
2021-11-28 15:52:56
803
原创 Git 学习心得
这几天学习如何把代码push到gitee上,折腾了好一会了,叙述一下步骤和心得: 0、Git上需要注意的东西 (1)在本地,SSH位置要在 C:\Users\abc\.ssh,当然也可以自己配置 (2)新增远程仓库 于是 testPushNew 就是远程仓库名 git remote add <name> <url> user MINGW64 ~/Desktop/testPush (master) $ git remote add testPushNew gi...
2021-11-26 21:40:19
391
原创 在springboot项目配置Tomcat 10出现异常,其实可以不配置
教训:springboot是自带Tomcat的 Tomcat 使用catalina run指令是可以运行的 springboot项目单方面也可以运行,就空项目 使用IDEA运行Tomcat就出现问题了Whitelabel Error Page
2021-11-22 16:58:27
768
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人