Git 列出除了 .gitignore 以外的所有文件(包括 tracked 和 untracked 的)

在执行 git ls-files 的时候,只会列出被 git 跟踪了 (tracked) 的文件,而不会列出那些新建未跟踪的文件 (untracked) ,这个时候用以下命令就可以列出除了 .gitignore 以外的所有文件(包括 tracked 和 untracked 的): 1 git ls-files --exclude-standard --cache --others 这个命令也可以简写成: 1 git ls-files --exclude-standard -c -o 或者: 1 git ls-files --exclude-standard -co 各项参数的意思(参考 Git 官方文档): -c –cached Show all files cached in Git’s index, i.e. all tracked files. (This is the default if no -c/-s/-d/-o/-u/-k/-m/–resolve-undo options are specified.) -o –others Show other (i.e. untracked) files in the output...

五月 18, 2023 · 1 分钟 · 103 字 · HCY

Markdown (HTML) 砌体 (瀑布) 布局

直接上我的 markdown 源码就好了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 <style> .blog_photo_album_grid { -webkit-column-count: 3; -webkit-column-gap: 10px; -webkit-column-fill: auto; -moz-column-count: 3; -moz-column-gap: 10px; -moz-column-fill: auto; column-count: 3; column-gap: 10px; column-fill: auto; } .blog_photo_album_block { background-color: none; display: block; padding: 10px; word-wrap: break-word; margin-bottom: 10px; -webkit-column-break-inside: avoid; -moz-column-break-inside: avoid; column-break-inside: avoid; border-style: solid; border-width: 1px; border-radius: 5px; border-color: #f0f0f0; box-shadow: 3px 3px 3px #f0f0f0; } </style> <div class="blog_photo_album_grid"> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/doge....

二月 15, 2023 · 1 分钟 · 154 字 · HCY

Markdown 对话框

只有左右框 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <div align="right"> <div style="width:47%; border-style:solid; border-width:1px; border-radius:15px"> <div style="text-align:center;margin:5%"> 这是右边 </div> </div> </div> <div align="left"> <div style="width:47%; border-style:solid; border-width:1px; border-radius:15px"> <div style="text-align:center;margin:5%"> 这是左边 </div> </div> </div> 带有箭头的左右框 写法一 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 <style type="text/css"> ....

十一月 5, 2022 · 2 分钟 · 372 字 · HCY