进入项目根目录文件夹,在资源管理器上方文件路径前面输入 cmd 或者 powershell 回车进入当前目录。
输入 tree 显示根目录文件夹下 所有文件夹,输入 tree /f 显示根目录文件夹下的所有文件。
选中目录树 键盘 ctrl+C 即复制到粘贴板了。然后就可以粘到 markdown 文件中。
tree /f > tree.txt
1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣🔟
💯一百分符号
- 确保cdn链接正确
- 确保ImageBed文件夹位置正确
- 更新iconfont的js引用
1
|
git commit -m “up-2022-11-07-17:41:01”
|
【同时 Push (Public)到 gitee 和 gitHub 】
【同时 Push (ImageBed)到 gitee 和 gitHub 】
【同时 Push (Source)到 gitee 和 gitHub 】
【Push到ScreenShot 】
- name[\s\S]*|avatar[\s\S]*|descr[\s\S]*|siteshot[\s\S]*|friend_list[\s\S]*|class_desc[\s\S]*|- class_name[\s\S]*|link.{2}|\s
1
|
git push -u origin main
|
【Push到Hugo_meme_none 】
- 初始化本地仓库
- 添加到缓存区
- 提交到本地暂存
新建完仓库后,复制仓库地址
1
|
git remote add origin 远程仓库地址
|
推送到 master 分支:
若本地版本与远程版本有差异,需强制推送,则使用 --force 参数:
1
|
git push --force origin master
|
- 进入空文件夹内,鼠标右键打开Git Bash
- 执行代码
#查看git仓库状况(工作区文件被删除,等待add操作更新仓库stage区)
git status
#添加文件(在空工作区执行add命令,完成stage区中的delete操作)
git add .
#操作备注
git commit -m "仓库已清空"
#添加远程仓库(已添加可以跳过)
git remote add origin git@github.com:username/repositoryname
#推送到远程仓库
git push -u origin master
- 做最后一步时,从本地仓库向Github远程仓库推送更新时可能会发生错误
- 这里有条强制推送命令,本义是从历史不相关的本地仓库强制推送到另一个远程仓库,可以使用 --force 参数,而且Github仓库的历史记录如commit次数应该会被重置,就好像向新仓库进行第一次推送一样。
git push --force origin master
分享一个 hugo 一键打包并上传 github 的方法,前提是你之前上传过 GitHub 仓库。
采用 window 支持的 sh可执行文件,在根目录新建一个 hugo.sh 文件,里面放上一些命令。
1
2
3
4
5
6
7
8
9
10
11
|
hugo
# cd public
time=$(date "+%Y-%m-%d %H:%M:%S")
echo $time
git add .
git commit -m "自动执行构建脚本 🎓$time"
git push
exit
|
可以在文件夹双击运行 hugo.sh,也可以在终端输入命令。
省去了输入繁琐的 Git 上传指令,并且自动生成当前系统时间作为 commit。
这里我上传的是整体的 hugo 目录,如果你只想上传生成的 /public ,在中间加入 cd public。
1
2
3
|
ssh-keygen -t rsa -C 'cajun_ray@qq.com' -f ~/.ssh/gitee_id_rsa
ssh-keygen -t rsa -C 'cajun_ray@qq.com' -f ~/.ssh/github_id_rsa
|
1
2
3
|
git remote add github git@github.com:cajunlei/cajunlei.github.io.git
git remote add gitee git@gitee.com:cajunlei/cajunlei.git
|
1
2
3
|
git config --global user.email "cajun_ray@qq.com"
git config --global user.name "Cajun"
|
1
2
3
|
git pull github master --allow-unrelated-histories
git pull gitee master --allow-unrelated-histories
|
1
2
3
|
git pull github master
git pull gitee master
|
1
2
3
|
git push github master
git push gitee master
|
1
2
3
4
5
|
Host gitee.com
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
|
1
2
3
|
type *.txt \>\> D:/Desktop/aa.txt
font-spider aa.html
|
1
|
npm install atomic-algolia --save
|
1
|
[a-zA-Z|🇦-🇿|0-9|\n|$|<|>|=|&|#|,|·|;|_|!|^|\(|)|`|"|*|+|-|-|\\|/|%|…|\[|\]|“|”|「|」|【|】|\{|}|〔|〕|《|》|(|)|―|▲|!|@|~|×| | |’|'||:|;|,|。|、|?|?|:|.|?| |-|├|─|│|√|→| |👉|💝|🤣|😂|🙏|📗|📘|📒|📙|👀|✏️|☘️|📫|⛺]
|
1
|
[😀|😃|😄|😁|😆|😅|🙂|🙃|😉|😊|😇|😍|😘|😗|☺|😚|😙|😋|😛|😜|😝|🤑|🤗|🤔|🤐|😐|😑|😶|😏|😒|🙄|😬|🤥|😌|😔|😪|🤤|😴|😷|🤒|🤕|🤢|🤧|😵|🤠|😎|🤓|😕|😟|🙁|☹|😮|😯|😲|😳|😦|😧|😨|😰|😥|😢|😭|😱|😖|😣|😞|😓|😩|😫|😤|😡|😠|😈|👿|💀|☠|💩|🤡|👹|👺|👻|👽|👾|🤖|😺|😸|😹|😻|😼|😽|🙀|😿|😾|🙈|🙉|🙊|💋|💌|💘|💖|💗|💓|💞|💕|💟|❣|💔|❤|💛|💚|💙|💜|🖤|💯|💢|💥|💫|💦|💨|🕳|💣|💬|👁🗨|🗯|💭|💤|👋|🤚|🖐|✋|🖖|👌|✌|🤞|🤘|🤙|👈|👆|🖕|👇|☝|👍|👎|✊|👊|🤛|🤜|👏|🙌|👐|🤝|✍|💅|🤳|💪|👂|👃|👁|👅|👄|👶|👦|👧|👨|👩|👱♀|👴|👵|🙍♀|🙍♂|🙎♀|🙎♂|🙅♀|🙅♂|🙆♀|🙆♂|💁♀|💁♂|🙋♀|🙋♂|🙇♂|🙇♀|🤦♂|🤦♀|🤷♂|🤷♀|👨⚕|👩⚕|👨🎓|👩🎓|👨🏫|👩🏫|👨⚖|👩⚖|👨🌾|👩🌾|👨🍳|👩🍳|👨🔧|👩🔧|👨🏭|👩🏭|👨💼|👩💼|👨🔬|👩🔬|👨💻|👩💻|👨🎤|👩🎤|👨🎨|👩🎨|👨✈|👩✈|👨🚀|👩🚀|👨🚒|👩🚒|👮♂|👮♀|🕵|🕵♀|💂♂|💂♀|👷♂|👷♀|🤴|👸|👳♂|👳♀|👲|🤵♂|👰|🤰|👼|🎅|🤶|💆♀|💆♂|💇♀|💇♂|🚶♂|🚶♀|🏃♂|🏃♀|💃|🕺|🕴|👯♀|👯♂|🤺|🏇|⛷|🏂|🏌♂|🏌♀|🏄♂|🏄♀|🚣♂|🚣♀|🏊♂|🏊♀|⛹♂|⛹♀|🏋♂|🏋♀|🚴♂|🚴♀|🚵♂|🚵♀|🤸♂|🤸♀|🤼♂|🤼♀|🤽♂|🤽♀|🤾♂|🤾♀|🤹♂|🤹♀|🛀|🛌|👭|👫|👬|👩❤💋👨|👨❤💋👨|👩❤💋👩|👩❤👨|👨❤👨|👩❤👩|👨👩👦|👨👩👧|👨👩👧👦|👨👩👦👦|👨👩👧👧|👨👨👦|👨👨👧|👨👨👧👦|👨👨👦👦|👨👨👧👧|👩👩👦|👩👩👧|👩👩👧👦|👩👩👦👦|👩👩👧👧|👨👦|👨👦👦|👨👧|👨👧👦|👨👧👧|👩👦|👩👦👦|👩👧|👩👧👦|👩👧👧|🗣|👤|👥|👣|🐵|🐒|🦍|🐶|🐕|🐩|🐺|🦊|🐱|🐈|🦁|🐯|🐅|🐆|🐴|🐎|🦄|🦌|🐮|🐂|🐃|🐄|🐷|🐖|🐗|🐽|🐏|🐑|🐐|🐪|🐫|🐘|🦏|🐭|🐁|🐀|🐹|🐰|🐇|🐿|🦇|🐻|🐨|🐼|🐾|🦃|🐔|🐓|🐣|🐤|🐥|🐦|🐧|🕊|🦅|🦆|🦉|🐸|🐊|🐢|🦎|🐍|🐲|🐉|🐳|🐋|🐬|🐟|🐠|🐡|🦈|🐙|🐚|🐌|🦋|🐛|🐜|🐝|🪲|🕷|🕸|🦂|💐|🌸|💮|🏵|🌹|🥀|🌺|🌻|🌼|🌷|🌱|🌲|🌳|🌴|🌵|🌾|🌿|🍀|🍁|🍂|🍃|🍇|🍈|🍉|🍊|🍋|🍌|🍍|🍎|🍏|🍐|🍑|🍒|🍓|🥝|🍅|🥑|🍆|🥔|🥕|🌽|🌶|🥒|🍄|🥜|🌰|🍞|🥐|🥖|🥞|🧀|🍖|🍗|🥓|🍔|🍟|🍕|🌭|🌮|🌯|🥙|🥚|🍳|🥘|🍲|🥗|🍿|🍱|🍘|🍙|🍚|🍛|🍜|🍝|🍠|🍢|🍣|🍤|🍥|🍡|🦀|🦐|🦑|🍦|🍧|🍨|🍩|🍪|🎂|🍰|🍫|🍬|🍭|🍮|🍯|🍼|🥛|☕|🍵|🍶|🍾|🍷|🍸|🍹|🍺|🍻|🥂|🥃|🍽|🍴|🥄|🔪|🏺|🌍|🌎|🌏|🌐|🗺|🗾|🏔|⛰|🌋|🗻|🏕|⛱|🏜|🏝|🏞|🏟|🏛|🏗|🏘|🏚|🏠|🏡|🏢|🏣|🏤|🏥|🏦|🏨|🏩|🏪|🏫|🏬|🏭|🏯|🏰|💒|🗼|🗽|⛪|🕌|🕍|⛩|🕋|⛲|🌁|🌃|🏙|🌄|🌅|🌆|🌇|🌉|♨|🎠|🎡|🎢|💈|🎪|🚂|🚃|🚄|🚅|🚆|🚇|🚈|🚉|🚊|🚝|🚞|🚋|🚌|🚍|🚎|🚐|🚑|🚒|🚓|🚔|🚕|🚖|🚗|🚘|🚙|🚚|🚛|🚜|🏎|🏍|🛵|🚲|🛴|🚏|🛣|🛤|🛢|⛽|🚨|🚥|🚦|🛑|🚧|⚓|⛵|🛶|🚤|🛳|⛴|🛥|🚢|✈|🛩|🛫|🛬|💺|🚁|🚟|🚠|🚡|🛰|🚀|🛎|⌛|⏳|⌚|⏰|⏱|⏲|🕰|🕛|🕧|🕐|🕜|🕑|🕝|🕒|🕞|🕓|🕟|🕔|🕠|🕕|🕡|🕖|🕢|🕗|🕣|🕘|🕤|🕙|🕥|🕚|🕦|🌑|🌒|🌓|🌔|🌕|🌖|🌗|🌘|🌙|🌚|🌛|🌜|🌡|☀|🌝|🌞|⭐|🌟|🌠|🌌|☁|⛅|⛈|🌤|🌥|🌦|🌧|🌨|🌩|🌪|🌫|🌬|🌀|🌈|🌂|☂|☂|⛱|⚡|❄|☃|☃|☄|🔥|💧|🌊|🎃|🎄|🎆|🎇|✨|🎈|🎉|🎊|🎋|🎍|🎎|🎏|🎐|🎑|🎀|🎁|🎗|🎟|🎫|🎖|🏆|🏅|🥇|🥈|🥉|⚽|⚾|🏀|🏐|🏈|🏉|🎾|🎳|🦗|🏑|🏒|🏓|🏸|🥊|🥋|🥅|⛳|⛸|🎣|🎽|🎿|🎯|🎱|🔮|🎮|🕹|🎰|🎲|♠|♥|♦|♣|🃏|🀄|🎴|🎭|🖼|🎨|👓|🕶|👔|👕|👖|👗|👘|👙|👚|👛|👜|👝|🛍|🎒|👞|👟|👠|👡|👢|👑|👒|🎩|🎓|⛑|📿|💄|💍|💎|🔇|🔈|🔉|🔊|📢|📣|📯|🔔|🔕|🎼|🎵|🎶|🎙|🎚|🎛|🎤|🎧|📻|🎷|🎸|🎹|🎺|🎻|🥁|📱|📲|☎|📞|📟|📠|🔋|🔌|💻|🖥|🖨|⌨|🖱|🖲|💽|💾|💿|📀|🎥|🎞|📽|🎬|📺|📷|📸|📹|📼|🔍|🔎|🕯|💡|🔦|🏮|📔|📕|📖|📚|📓|📃|📜|📄|📰|🗞|📑|🔖|🏷|💰|💴|💵|💶|💷|💸|💳|💹|✉|📧|📧|📨|📩|📤|📥|📦|📪|📬|📭|📮|🗳|✒|🖋|🖊|🖌|🖍|📝|💼|📁|📂|🗂|📅|📆|🗒|🗓|📇|📈|📉|📊|📋|📌|📍|📎|🖇|📏|📐|✂|🗃|🗄|🗑|🔒|🔓|🔏|🔐|🔑|🗝|🔨|⛏|⚒|🛠|🗡|⚔|🔫|🏹|🛡|🔧|🔩|⚙|🗜|⚖|🔗|⛓|⚗|🔬|🔭|🛰|💉|💊|🚪|🛏|🛋|🚽|🚿|🛁|🛒|🚬|⚰|⚱|🗿|🏧|🚮|🚰|♿|🚹|🚺|🚻|🚼|🚾|🛂|🛃|🛄|🛅|⚠|🚸|⛔|🚫|🚳|🚭|🚯|🚱|🚱|🚷|📵|🔞|☢|☣|⬆|↗|➡|↘|⬇|↙|⬅|↖|↕|↔|↩|↪|⤴|⤵|🔃|🔄|🔙|🔚|🔛|🔜|🔝|🛐|⚛|🕉|✡|☸|☯|✝|☦|☪|☮|🕎|🔯|♈|♉|♊|♋|♌|♍|♎|♏|♐|♑|♒|♓|⛎|🔀|🔁|🔂|▶|⏩|⏭|⏯|◀|⏪|⏮|🔼|⏫|🔽|⏬|⏸|⏹|⏺|🎦|🔅|🔆|📶|📳|📴|✖|➕|➖|➗|‼|⁉|❓|❔|❕|❗|〰|💱|💲⃣⃣⃣⃣⃣⃣⃣⃣⃣⃣⃣⃣|🔟|🔠|🔡|🔢|🔣|🔤|🅰|🆎|🅱|🆑|🆒|🆓|ℹ|🆔|ⓜ|🆕|🆖|🅾|🆗|🅿|🆘|🆙|🆚|🈁|🈂|🈷|🈶|🈯|🉐|🈹|🈚|🈲|🉑|🈸|🈴|🈳|㊗|㊙|🈺|🈵|🔴|🔵|⚫|⚪|⬛|⬜|◼|◻|◾|◽|▪|▫|🔶|🔷|🔸|🔹|🔺|🔻|💠|🔘|🔳|🔲|♻|⚜|🔱|📛|🔰|⭕|✅|☑|✔|❌|❎|➰|➿|〽|✳|✴|❇|©|®|™|🏁|🚩|🎌|🏴|🏳|🏳🌈|]
|
1
2
3
4
5
6
7
8
9
|
ALGOLIA*APP*ID={{6BP4K3EYK9}}
ALGOLIA*ADMIN*KEY={{6384631eddf14cdfaa2930796b062e24}}
ALGOLIA*INDEX*NAME={{index}}
ALGOLIA*INDEX*FILE={{public/algolia.json}}
npm run algolia
|
1
2
3
4
5
6
7
8
|
63ccebda18723a351844e7936821a8fe5dedbdcd
github--\>cuibi--\>token:
ghp*JhnQdUvronG8nEbO6lor4PddmBpC7m0lZ469*
PicX 图床:
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
|
1
2
3
4
5
6
|
git init
git add .
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/cajunlei/Blog_hexo.git
git push -u origin master
|
密钥:ghpiO31U8s6PMYn7S6q2ri5nEafDEckgD2nMg5W
1
|
git remote add origin https://github.com/cajunlei/resume.git
|
- 注意最后有个点,代表把当前目录内的所有文件加入到跟踪
1
|
git commit -m "first commit"
|
1
|
git push -u origin master
|
1
|
git push -u origin +master
|
强制推送:-f
npm run algolia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
hugo --theme=LoveIt --baseUrl="https://ll.sc.cn"
cd public
git init
git remote add origin https://github.com/cajunlei/cajunlei.github.io.git
git add -A
git commit -m "增加鼠标样式"
git push -u origin +master
git config --global http.sslVerify "false"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
git pull origin master --allow-unrelated-histories
git pull
git push -u origin master
git push -u origin master
hugo --theme=LoveIt --baseUrl="https://cajunlei.github.io/" --buildDrafts
cd public
git init
git remote add origin https://github.com/cajunlei/cajunlei.github.io.git
git add .
git commit -m "2021/10/19-17:28"
git push -u origin +master
|
Click to expand!
Name |
Description |
Notes |
title |
* |
string |
linkTitle |
* |
string |
subtitle |
displayed below the title |
string, Markdown supported |
date |
* |
string |
lastmod |
* |
string |
publishDate |
* |
string |
expiryDate |
* |
string |
<taxonomies> eg: categories, tags, series |
* |
array |
description |
* |
string, Markdown supported |
summary |
* |
string, Markdown supported |
images |
* |
array |
slug |
* |
string |
url |
* |
string |
draft |
* |
boolean |
isCJKLanguage |
* |
boolean |
weight |
* |
integer |
type |
* |
string, if equal to "poetry", will use a special layout for it |
layout |
* |
string |
outputs |
* |
array |
aliases |
* |
array |
markup |
* |
string |
meta |
set false to disable post-meta |
boolean |
toc |
display TOC |
boolean, override enableTOC in config.toml |
tocNum |
display TOC number |
boolean, override displayTOCNum in config.toml |
anchor |
enable headings anchor |
boolean, override enableHeadingsAnchor in config.toml |
displayCopyright |
display post-copyright |
boolean, override displayPostCopyright in config.toml |
badge |
display updated-badge |
boolean, override displayUpdatedBadge in config.toml |
gitinfo |
display post-gitinfo |
boolean, override displayPostGitInfo in config.toml |
share |
display post-share |
boolean, override displayPostShare in config.toml |
related |
display related-posts |
boolean, override displayRelatedPosts in config.toml |
katex |
add KaTeX support |
boolean, override enableKaTeX in config.toml |
mathjax |
add MathJax support |
boolean, override enableMathJax in config.toml |
mermaid |
add Mermaid support |
boolean, override enableMermaid in config.toml |
comments |
set false to disable comments in mainSections or set true to enable comments in non-mainSections |
boolean |
smallCaps |
small caps? |
boolean, override enableSmallCaps in config.toml |
dropCap |
drop cap? |
boolean, override enableDropCap in config.toml |
dropCapAfterHr |
drop cap after every horizontal rule tag? |
boolean, override enableDropCapAfterHr in config.toml |
deleteHrBeforeDropCap |
delete horizontal rule tag before drop cap? |
boolean, override deleteHrBeforeDropCap in config.toml |
indent |
indent instead of margin? |
boolean, override paragraphStyle in config.toml |
indentFirstParagraph |
indent the first paragraph? |
boolean, override indentFirstParagraph in config.toml |
align |
normal, justify, center |
string, if equal to "normal", will override enableJustify in config.toml |
original |
original? You can add the following 8 terms if you set false . The author is required, other optional |
boolean, override original in config.toml |
author |
author of original post |
string |
link |
link of original post |
string, URL |
copyright |
license of the post |
string, Markdown supported |
website |
author’s website |
string |
email |
author’s email |
string |
motto |
author’s description |
string |
avatar |
author’s avatar |
string, URL |
twitter |
author’s twitter id |
string |
disqus_url |
* |
string, if not set, will use Permalink as default |
disqus_identifier |
* |
string, if not set, will use RelPermalink as default |
disqus_title |
* |
string, if not set, will use Title as default |
*: see https://gohugo.io/content-management/front-matter/
and https://gohugo.io/templates/internal/#configure-disqus