摘要: 场景1:修改了文件/path/to/file,没有提交,但是觉得改的不好,想还原。解决:git checkout -- /path/to/file 场景2:修改了文件/path/to/file,已经提交,但是觉得改的不好,想还原到上衣版本。解决:1. 首先查看文件的历史版本。git log /pat 阅读全文
posted @ 2020-11-20 10:45 FL1188 阅读(1373) 评论(0) 推荐(0)
摘要: apt-cache depends g++ 阅读全文
posted @ 2020-11-17 10:30 FL1188 阅读(392) 评论(0) 推荐(0)
摘要: 1、备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk 2、编辑 sudo vim /etc/apt/sources.list ##中科大源 deb https://mirrors.ustc.edu.cn/ubuntu/ bionic 阅读全文
posted @ 2020-11-17 10:00 FL1188 阅读(129) 评论(0) 推荐(0)
摘要: 从executor_work_guard.hpp可知,executor_work_guard的构造和析构分别调用了 executor_.on_work_started(); 和 executor_.on_work_finished(); executor_是executor_work_guard绑定 阅读全文
posted @ 2020-09-18 11:39 FL1188 阅读(2844) 评论(0) 推荐(1)
摘要: chmod -R 777 xxx/ 阅读全文
posted @ 2020-09-14 18:42 FL1188 阅读(182) 评论(0) 推荐(0)
摘要: apt-cache search "xxx" 阅读全文
posted @ 2020-09-10 15:25 FL1188 阅读(204) 评论(0) 推荐(0)
摘要: 1.git clone xxx 2.新建本地分支 git branch develop 3.查看远程分支git branch -a 以origin/ 开头的分支,都是远程分支; 单个单词的分支,都是本地分支。 4.将本地分支与远程分支做绑定 git branch --set-upstream-to= 阅读全文
posted @ 2020-09-08 15:27 FL1188 阅读(1472) 评论(0) 推荐(0)
摘要: pgrep lua | xargs kill -s 9 阅读全文
posted @ 2020-09-03 17:22 FL1188 阅读(124) 评论(0) 推荐(0)
摘要: Linux的行尾符是 \n Windows的行尾符是 \r\n 但是Win10的Git有时候会把自己的行尾符修改为 \n(LF) 此时我们需要执行 $ git config --global core.autocrlf true 把行尾符修改为 (CRLF) 这样Bat文件才能顺利执行 阅读全文
posted @ 2020-07-24 10:31 FL1188 阅读(282) 评论(0) 推荐(0)
摘要: apt install mysql-client mysql -u user -p -h ip_xxx 阅读全文
posted @ 2020-07-22 10:21 FL1188 阅读(101) 评论(0) 推荐(0)