[システム操作][Linux]構成git

1185 ワード

gitのインストール

sudo apt install git

ユーザー名とメールボックスの設定

git config --global user.name "cloudblaze"
git config --global user.email cloudblaze@yeah.net

pushを設定します。default

git config --global push.default simple

鍵の生成

ssh-keygen -t rsa -C "[email protected]"

githubでの鍵の使用


ファイルをコピー~/.ssh/id_rsa.pubの内容はgithubに

githubフォルダの作成

mkdir -p ~/  /github

gitの初期化

cd ~/  /github
git init