git config 檢視配置資訊

2021-08-14 16:23:08 字數 478 閱讀 4007



config 配置指令

1

git config

config 配置有system級別 global(使用者級別) 和local(當前倉庫)三個 設定先從system-》global-》local  底層配置會覆蓋頂層配置 分別使用--system/global/local 可以定位到配置檔案

檢視系統config

1

git config --system --list

檢視當前使用者(global)配置

1

git config --global  --list

檢視當前倉庫配置資訊

1

git config --local--list

檢視LINUX 硬體配置資訊

dmidecode more dmesg more 這2個命令出來的資訊都非常多,所以建議後面使用 more 便於檢視 2.檢視cpu資訊 方法一 linux下cpu相關的引數儲存在 proc cpuinfo 檔案裡 cat proc cpuinfo more 方法二 採用命令 dmesg grep...

Git檢視本地配置資訊

config 配置指令 git configconfig 配置有system級別 global 使用者級別 和local 當前倉庫 三個 設定先從system global local 底層配置會覆蓋頂層配置 分別使用 system global local 可以定位到配置檔案 檢視系統config...

安卓 檢視配置資訊

配置資訊 專案的配置資訊 手機的配置資訊 使用的時候建議封裝成單例的工具類 專案的配置資訊 if singleton null return singleton private context context 裝置資訊初始化 public void init context context publ...