01 2022 档案
摘要:desired output Last login: Fri Jan 28 17:05:06 on ttys002 ➜ ~ cd .. ➜ /Users 实现方法 在 ~/.zshrc 中加入: precmd() { precmd() { echo } } 即可实现在每条命令完成之后输出空行,且首次
阅读全文
摘要:假设 .gitmodules 是这样的: [submodule "abc"] path = abc url=git@github.com:me/abc.git 之前一直以为有了这个文件子模块就会自动拉取最新版本的代码,其实不是的,需要手动指定和变更。 正确做法 git submodule updat
阅读全文
摘要:使用背景 比如有人往remote推送了一个新的分支,自己本地没有,但想同步到本地 git switch 首先 git branch -r ,找到你需要的那个分支名称 origin/HEAD -> origin/master origin/newBranch git switch newBranch
阅读全文
摘要:以前读书时候一直用的参考网站,竟然已经挂了:http://man.linuxde.net/docs/shell_regex.html 还好有 web archive: https://web.archive.org/web/20210831062203/https://man.linuxde.net
阅读全文
摘要:推荐这个文档: https://docs.w3cub.com/python~2.7/library/xml.etree.elementtree 基本概念 ElementTree 代表把整个xml作为一棵树处理 Element 代表树中的一个节点 整体操作,如文件读写,多用ElementTree, 具
阅读全文