在linux中, git clone 免密操作

2021-10-07 18:50:15 字數 691 閱讀 8003

ssh-keygen -t rsa -c "你的郵箱" -f "自己定義的目錄"

開啟: id_rsa.pub ,將檔案內容複製到 gitlab 設定頁:ssh金鑰配置。

可以進行設定,這樣在輸入過一次密碼之後,以後就不需要每次都輸入密碼了。

開啟終端:

輸入:touch ~/.git-credentials

如果手工在其中加入:

那麼第一次訪問git位址,也不用輸入密碼了。

再輸入:

git config --global credential.helper store

這一步會在使用者目錄下的.gitconfig檔案最後新增:

[credential]

helper = store

git出現error: the requested url returned error: 401 unauthorized while accessing得到原因是因為伺服器的git版本是 git version 1.7.1

git remote set-url origin url  #同樣需要再url中定義賬號和密碼

git config --system --unset credential.helper

在linux中列印debug message

echo 8 proc sys kernel printk cat proc sys kernel printk 8 4 1 7上面顯示的4個資料分別對應控制台日誌級別 console loglevel 預設的訊息日誌級別 最低的控制台日誌級別和預設的控制台日誌級別。當日誌級別小於console l...

rar 在linux 中解壓

例 1 新增檔案或目錄到壓縮檔案中,使用a命令。例如把檔案files1新增到abc.rar中,使用a或m命令,a命令把file1檔案新增到 abc.rar檔案中保持原有的file1檔案不變,m命令移動file1檔案到file1.rar檔案中 壓縮完成後會刪除原有的file1檔案,注意 m命令只針對檔...

Boost在linux中編譯

用boost 1 39 0版本作為例子 1 進入boost 1 39 0 tools jam src 2 執行.build.sh 或者在boost 1 39 0 tools jam 下執行.build dist.sh 3 編譯完成後在boost 1 39 0 tools jam src bin.li...