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.svg"><h5 align="center">Hey, bro?</h5></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/brine_duck.jpg"><div align="center">教工餐厅卤鸭</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/hall_chick_8.jpg"><div align="center">咖喱鸡扒饭</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/gongcha_pancake.jpg"><div align="center">贡茶手抓饼</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/griddle_braised_rice.jpg"><div align="center">烤盘饭</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/lanzhou_beef_noodles.jpg"><div align="center">兰州牛肉面</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/gongcha_pancake_1.jpg"><div align="center">贡茶手抓饼+1</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/hall_duck_8.jpg"><div align="center">黑椒鸭扒饭</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/eggtar.jpg"><div align="center">亲手做的蛋挞</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/eggtar_1.jpg"><div align="center">亲手做的蛋挞+1</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/chashao.jpg"><div align="center">旺角叉烧饭</div></div> <div class="blog_photo_album_block"><img src="/pictures/photo_album/eat/tea_cake.jpg"><div align="center">饭堂小吃</div></div> </div> 效果可以参考👇 ...

二月 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"> .div-diabox{ width: 60%; border-style: solid; border-width: 1px; border-radius: 16px; position: relative; padding:30px; text-align:center } .div-diabox .arrow-right-out{ width: 0px; height: 0px; border-style: solid; border-color: transparent transparent transparent black; border-width: 10px; position: absolute; top: 10px; right: -20px; } .div-diabox .arrow-right-in{ width: 0px; height: 0px; border-style: solid; border-color: transparent transparent transparent white; border-width: 10px; position: absolute; top: 10px; right: -19px; } .div-diabox .arrow-left-out{ width: 0px; height: 0px; border-style: solid; border-color: transparent black transparent transparent; border-width: 10px; position: absolute; top: 10px; left: -20px; } .div-diabox .arrow-left-in{ width: 0px; height: 0px; border-style: solid; border-color: transparent white transparent transparent; border-width: 10px; position: absolute; top: 10px; left: -19px; } </style> <div align="right"> <div class="div-diabox"> <span class="arrow-right-out"></span> <span class="arrow-right-in"></span> 右边 </div> </div> <br/> <div align="left"> <div class="div-diabox"> <span class="arrow-left-out"/></span> <span class="arrow-left-in"></span> 左边 </div> </div> <br/> 写法二 ...

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