Git相關操作
功能快捷鍵
看到user.name 和user.email 的配置:
git config --list
如果你沒有初始化過,那麼直接:
git config --global user.name “輸入你的用戶名”
git config --global user.email “輸入你的郵箱”
如果初始化過,輸入:
git config --global --replace-all user.name “輸入你的用戶名”
git config --global --replace-all user.email “輸入你的郵箱”
生成ssh key
ssh-keygen -t rsa -C “輸入你的郵箱”
生成的祕鑰可在/root/.ssh目錄下找到