每月彙整:八月 2021

git

git HEAD 一般指向一個 Branch 的最新一個 Commit,也是使用者目前所能看到的 Git 內容。新增的 Commit 必定接在目前 HEAD 後面。 Index Commit 前的過渡區,告知 Git 哪些檔案需要包含在此次 Commit 內。 Reset Soft reset –soft [commit] #[單純移動 HEAD 與其 Branch] ,這個模式下的 reset,工作目錄跟暫存區的檔案都不會被丟掉,所以看起來就只有 HEAD 的移動而已。也因此,Commit 拆出來的檔案會直接放在暫存區。 Hard reset –rard [commit] #[除了移動 HEAD 與其 … 繼續閱讀 →

發表於 未分類 | 發表迴響

mysql 指令

練習網站 https://sqlzoo.net/wiki/SELECT_basics/zh https://www.w3school.com.cn/sql/index.asp https://www.w3schools.com/sql/default.asp 連接資料庫 mysql -u username DATABASES_NAME -P 顯示所有 MySQL 資料庫 SHOW DATABASES; 顯示該資料庫資料表 SHOW TABLES; 顯示系統狀態 SHOW status; 變數 show variables; show variables like ‘%max%’ process show processlist; 全部權限 show priviledges;

發表於 未分類 | 已標籤 | 發表迴響

docker 學習網站參考

https://www.runoob.com/docker/docker-container-usage.html https://blog.clarence.tw/2019/09/10/docker-removing-containers-images-volumes-and-networks/ https://ithelp.ithome.com.tw/users/20102562/ironman/3746?page=3 ——————————————————– docker 如有非 root user 須執行 ,將 目前 user 加入 Docker 使用群 ,就可以使用 ,編輯 /etc/group ,username 加入 docker 那一行即可 或 sudo gpasswd -a myusername docker ——————————————————– –ulimit 參數 範例: docker run –ulimit nofile=1024:1024 –rm debian ulimit -n … 繼續閱讀 →

發表於 docker | 發表迴響