• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






timeaaa

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2023年4月10日

git reset [--soft| --mixed| --hard] [commit]
摘要: 【参考】https://www.jianshu.com/p/c6927e80a01d 【理解】 --soft改变最轻,将已提交变成uncommit状态,工作区内容不变 --mixed次之,将已提交变成unstage状态,工作区不变 --hard最严重,全部撤回,工作区改变 执行git reset - 阅读全文
posted @ 2023-04-10 20:31 timeaaa 阅读(39) 评论(0) 推荐(0)
 

2023年1月10日

子类对象调用父类函数,父类函数中又调用子类的虚函数,则该调用的虚函数为子类虚函数
摘要: 阅读全文
posted @ 2023-01-10 19:40 timeaaa 阅读(53) 评论(0) 推荐(0)
 

2023年1月3日

gitbash 不追踪大小写问题
摘要: 【情况】 1. 项目初始建立文件夹AAA 2. 为规范项目需要修改文件夹名称为aaa,打开git 大小写敏感设置 git config core.ignorecase false 3. 修改aaa下的文件内容,执行git status发现出现 AAA/files与aaa/files被修改 【解决方法 阅读全文
posted @ 2023-01-03 15:06 timeaaa 阅读(39) 评论(0) 推荐(0)
 

2022年12月14日

commit 本地代码之后有一个发现在.gitignore中的文件被追踪提交
摘要: 【问题描述】 1. 无脑[git add .] [git commit -m] 2. 发现在.gitignore中的文件被追踪并且被提交了 【解决方法】 1. [git reset --soft HEAD ^] 将上一次提交撤回 2. [ git rm --cached .vscode/settin 阅读全文
posted @ 2022-12-14 16:54 timeaaa 阅读(97) 评论(0) 推荐(0)
 

2022年12月6日

更新.gitignore 不能使用问题
摘要: git update-index --assume-unchanged SDK.log 该命令对大小写敏感,并对路径敏感(Windows下需使用\转义),见 https://stackoverflow.com/questions/12920652/git-update-index-assume-un 阅读全文
posted @ 2022-12-06 13:22 timeaaa 阅读(31) 评论(0) 推荐(0)
 

2022年4月11日

git原理
摘要: https://tonybai.com/2020/04/07/illustrated-tale-of-git-internal-key-concepts/ 阅读全文
posted @ 2022-04-11 11:19 timeaaa 阅读(22) 评论(0) 推荐(0)
 

2022年3月25日

git cherry-pick用法
摘要: 见:https://www.ruanyifeng.com/blog/2020/04/git-cherry-pick.html 学习记录使用,谢谢! 阅读全文
posted @ 2022-03-25 15:45 timeaaa 阅读(38) 评论(0) 推荐(0)
 

2022年3月17日

git log中中文乱码的问题
摘要: 见 https://blog.csdn.net/qianggezhishen/article/details/80865143 仅作为学习记录。 感谢!! 阅读全文
posted @ 2022-03-17 20:35 timeaaa 阅读(66) 评论(1) 推荐(0)
 

2021年11月24日

vector使用小感触【C++】
摘要: #include <iostream> #include <vector> #include <time.h> using namespace std; typedef unsigned char uchar; vector<uchar> testVector = { 0, 255, 238, 25 阅读全文
posted @ 2021-11-24 20:45 timeaaa 阅读(45) 评论(0) 推荐(0)
 

2021年11月11日

windows下使用C++遍历指定路径下的特定类型文件【vs2017】
摘要: 1. 遍历指定目录下的文件 参考: https://blog.csdn.net/akadiao/article/details/79044390 #include <cstdio> #include <io.h> #include <string> #include <vector> int mai 阅读全文
posted @ 2021-11-11 19:51 timeaaa 阅读(248) 评论(1) 推荐(0)