07 2023 档案
摘要:## 默认显示分支信息: ```bash git log ```  最新提交的在上面。 ### 1. 正序,最
阅读全文
摘要:- 和 -- 参数汇总 一、语法: $ git show [options] <object> [options] = [ -数字 ] [options] = [ -单字母 ] [options] = [ --单词 ] 二、[-数字] 类参数 数字排序 参数 说明 速记(英文) 0 1 2 3 4
阅读全文
摘要:## 更多最新参数说明: https://www.cnblogs.com/wutou/p/17593164.html ## 默认显示分支信息: ```bash git log ```  0 1 -1 显示最新的一条 log 2 -2 显示最新
阅读全文
摘要:linux下lftp命令中mirror的用法详解 ``` mirror [OPTS] [source [target]] 将源文件夹镜像到目标文件夹。如果目标文件夹以/结尾,原文件夹名称会被附加到目标文件夹名称之后。源和目标都可以是指向文件夹的URL。 -a 与--allow-chown –allo
阅读全文
摘要:## 方法一: ```bash $ sudo nohup python app1c.py >log.txt 2>&1 & ``` nohup允许运行从 shell 注销后可以在后台继续运行的命令/进程或 shell 脚本。 > log.txt : 它将输出转发到该文件。 > 2>&1 : 将所有标准
阅读全文
摘要:Windows用户一般打开东西,都是双击 某个图标,还有一种是在 命令行启动。 但是,还有一个地方可以直接启动,就是我们常用的 资源管理器(在桌面上,以前叫 **我的电脑、计算机**)的那个图标里,地址栏就可以直接输入。 ### 1.启动: Visual Studio Code(简称 vscode)
阅读全文
摘要:**系统版本:**Win11 **虚拟机版本:**VM 16.2.4 从其他系统迁移过来的 VM虚拟机,启动提示错误。搜好多都解决不了。  也提示成功,但是登录就是提示密码不对。 ### 解决方法: 你可能**重置错用户**了。系统安装时候就新建了其他用户,而不是默认的 root 用户。 以下是
阅读全文
摘要:工作中遇到一个实际问题,文本编码转换。 原始命令: ```bash cat utf8.log | iconv -c -f UTF-8 -t GBK| tee gbk.log ``` 因为某种(方便修改、方便替换)原因,想把 “| iconv -c -f UTF-8 -t GBK|”命令这段,想放到变
阅读全文
摘要:### shell jq读取配置文件null > 原因: 配置文件中没此项,但是 shell 脚本中读入, 为空导致, >解决方法: 脚本加判断,为空不执行 ## 友情提示: 调试的时候有两种方法查看 1. set -x 和 set +x ``` -x 开启调试 +x 关闭调试 ``` > *把想要
阅读全文
摘要:git add -A :是上面两个功能的合集(git add --all的缩写) git add -A 提交所有变化 git add -u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(new) git add . 提交新文件(new)和被修改(modified)文件,
阅读全文
摘要:git tag 是给 commit ID 标签,这样能让人知道代码在哪个节点,发布了版本,或截至到哪个ID,来做个记录 ### 1.查看本地所有 tag: ```bash git tag 或者 git tag -l ``` 多列显示 ```bash git tag --column ``` ###
阅读全文
摘要:**解决方法:** 如果用户想跳出选择循环,需要在循环体中根据条件在每个分支后增加break语句。 ### 1.用 case 判断: #### 用字符串选择分支: ```bash msg_info "请选择 dev 更新到哪个 Release 分支,数字(其他数字手动输入): " select mo
阅读全文
摘要:Linux 版本中,支持查看历史命令。 ## 0.前言 Linux 不同的发行版的设置的文件也不一样。 **Ubuntu:** ```bash vim ~/.bashrc ``` **CentOS:** ```bash vim ~/.bashrc 或 vim /etc/profile ``` 下面命
阅读全文
摘要:### 问题: pip 安装了模块,提示 No module named ### 解决方法: 1.先看看模块列表里是否安装好了: ```bash pip list 模块名 ``` 2.看看模块安装路径: ```bash pip show 模块名 ``` 3.多个版本的 Python ,看看pip把包
阅读全文
摘要:显示某个模块(包、插件)安装路径、版本信息 pip show Flask 或 pip3 show Flask 效果: 参考: https://www.zhihu.com/question/603263580?utm_id=0
阅读全文
摘要:### 方法一: ```bash python3 -c "import sys; print(sys.path)" ``` 效果:  2.只显示 8dd428 这个 c
阅读全文
摘要:git --date 常用参数 **详细使用说明**: [https://www.cnblogs.com/wutou/p/17493337.html](https://www.cnblogs.com/wutou/p/17493337.html "https://www.cnblogs.com/wut
阅读全文
摘要:选项参数语法: --pretty=format:%ae 详细使用教程:https://www.cnblogs.com/wutou/p/17490984.html --pretty=format控制显示信息的颜色:https://www.cnblogs.com/wutou/p/17536218.htm
阅读全文
摘要:1.创建 markdoen 代码片段文件。 注意文件名:markdown.json  2.写代码片段: ``
阅读全文
摘要:log日志,默认显示是黑白的,看这个不方便。加点颜色显示看着更方便。 一、颜色示例 1.默认显示: git log -1 --pretty="format:%h %s" 2.加彩色显示: git log -1 --pretty="format:%h %Cgreen %s %Creset" %h %s
阅读全文
摘要:使用 pip 时 出现 pip is configured with locations that require TLS/SSL 是因为在编译时候没有加上开启 SSL 的参数, 现在大部分的网络链接为了安全,都开启了 SSL 加密,常见的有 HTTPS 。 加上 --with-openssl=/u
阅读全文
摘要:1.动态库 lib-dynload 路径 ```bash python3 -c 'import random as m;print(m.__file__)' ``` 名前,必须要有空格 筛选参数 [注] 1)按数量 -n:显示前n
阅读全文
摘要:拉取远程仓库所有的分支到本地 ```bash for i in $(git branch -r); do $(git checkout $i && git pull --all); done ``` 参考: https://www.zhihu.com/question/54419234/answer
阅读全文
摘要:## 一、先知 要解决 模块 和 so 文件不存在问题,先要知道旧的环境中 相应文件位置 看这篇文章: https://www.cnblogs.com/wutou/p/17534693.html ## 二、报错内容: ubuntu1804编译升级 Python3.8.0 打不开终端、输入不存在的命令
阅读全文
摘要:一、下载源码 1.1 国外官方站,下载: 3.8:https://www.python.org/ftp/python/3.8.17/Python-3.8.17.tgz 3.9:https://www.python.org/ftp/python/3.9.17/Python-3.9.17.tgz 1.2
阅读全文