From e494ac7b64511c619b720fb328ca0fb8d99fbc80 Mon Sep 17 00:00:00 2001 From: every_holiday Date: Thu, 19 Mar 2026 17:56:50 +0900 Subject: [PATCH] =?UTF-8?q?add=20git=E8=AA=AC=E6=98=8E=E3=81=AE=E3=83=AA?= =?UTF-8?q?=E3=83=B3=E3=82=AF=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20269e4..39587fe 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,28 @@ vrcwt-test ``` -# remote登録 +# GitTeaにプッシュするための設定 ```bash -git remote set-url origin https://git.vrcworldtour.com/every_holiday/VRCWT-TEST.git +# 「署名」の設定 アカウント登録した時の名前とメールアドレスにする +git config --global user.name "every_holiday" +git config --global user.email "xxx@gmail.com" + +# 「パスワード保存」の設定(これを打つと次回から入力不要になるらしい) +git config --global credential.helper store #git stash git stash pop をやるのは面倒なのでgit pull するだけで自動退避・復元してくれる用に設定 git config --global rebase.autostash true +``` + +# リポジトリごとの設定 +```bash +# 既にプロジェクトをローカルで作ってる時 +git remote set-url origin https://every_holiday@git.vrcworldtour.com/every_holiday/vrcwt-test.git +# 新しくリポジトリを作るとき +git clone https://git.vrcworldtour.com/every_holiday/vrcwt-test.git +``` + +```bash # 自分の変更と誰かの変更が競合(コンフリクト)すると問題が発生するのでリモートの差分を取ってきます git fetch origin @@ -32,5 +48,12 @@ git pull origin main # remoteと同じになってればOK git diff main origin/main +# 1件の履歴を見る git log -p -1 ``` + +# Gitとは +Git_Guid.mdを参照 +``` +``` +