Posts
Git Tutorial
Git設定 查看設定 git config –list
設定帳號 git config –global user.name “hezhengmin”
設定信箱 git config –global user.email “zhengmin099@gmail.com”
Git基本用法 建立Repository git init
複製他人專案 git clone https://github.com/hezhengmin/Minesweeper.git
檢查狀態 git status
查詢記錄 git log
新增單一檔案 git add <檔案名稱>
新增全部的檔案 git add .
git add –all
全部修改提交 git commit -am “modified”
提交版本 git commit -m “填寫版本資訊”
推送到你的遠端 git push origin master
遠端主機分支master更新到本地主機 git pull origin master
刪除檔案 git rm “1. Two Sum.cpp”
Git分支用法 建立新branch並切換過去 git checkout -b <branch名稱>
Posts
Postman-儲存JwtToken為全域變數
1. 新增script const resp = pm.response.json(); pm.environment.set("jwtToken", resp.jwtToken) 程式回傳jwt token 2. 新增JWT變數 3. Request API上加入Token (Authorization) 4. Request API上加入Token (Header) 參考 Postman 儲存 API 變數 JWT Token 驗證資訊
Posts
建立網站
安裝 Hugo 官方提供 Hugo安裝路徑 設定環境變數 創建新站點 確認有無安裝hugo hugo version 建立 hugo new site quickstart 添加主題 cd quickstart git init git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke 添加一些內容 hugo new posts/my-first-post.md 例如 D:\Github\Hugo\quickstart> hugo new posts/202303191040.md 啟動 Hugo 服務器 hugo server -D 構建靜態頁面 hugo -D cd public file_server . git init git remote add origin https://github.com/hezhengmin/hezhengmin.github.io.git git add -A git commit -m "init site" git push origin master 開啟http://localhost:1313/ 測試網站 PS D:\Github\Hugo> cd quickstart PS D:\Github\Hugo\quickstart> hugo server -D 參考 https://gohugo.