move docsフォルダを作成して移動

This commit is contained in:
every_holiday
2026-03-19 18:40:45 +09:00
parent 48c1f92898
commit 3de0ecc31e
2 changed files with 23 additions and 13 deletions

5
docs/Git_Guid.md Normal file
View File

@@ -0,0 +1,5 @@
clone 最初のコピー リモート → ローカル(新規作成)
add 記録の「予約」 ファイル → ステージ(提出箱)
commit 記録の「確定」 ステージ → ローカル履歴(日記)
push 成果の「公開」 ローカル履歴 → リモート(掲示板)
pull 最新の「取得」 リモート → ローカル(合体)

69
docs/README.md Normal file
View File

@@ -0,0 +1,69 @@
TEST用リポジトリで何を行っても大丈夫です
- clone方法
`<>code`または`<>コード`ボタンをクリックします
https箇所に下記のような表記があるのでClickしてコピー
`https://git.vrcworldtour.com/every_holiday/vrcwt-test.git`
自分のPCに戻り作業したい箇所に下記コマンドを実行します
```bash
git clone https://git.vrcworldtour.com/every_holiday/vrcwt-test.git
Cloning into 'vrcwt-test'... remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) Receiving objects: 100% (3/3), done.
...
Resolving deltas: 100% (3/3), done.
```
指定したリポジトリが入っていればOKです
```bash
kennypi@kpi5 ~/work$ ls
vrcwt-test #これがあれば成功
```
## リポジトリごとの設定
先に色々プログラムなどを作ってからGitTeaを構築した際は微妙に方法が異なります。
```
# 新しくリポジトリを作るとき
git clone https://git.vrcworldtour.com/every_holiday/vrcwt-test.git
```
```bash
# 既にプロジェクトをローカルで作ってる時
git remote set-url origin https://every_holiday@git.vrcworldtour.com/every_holiday/vrcwt-test.git
```
# GitTeaにプッシュするための設定
GitTeaのサーバーに設定をプッシュするために行います。
```bash
# 「署名」の設定 アカウント登録した時の名前とメールアドレスにするメアドはxxxxとか適当にしてください
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 fetch origin
git pull origin main
# remoteと同じになってればOK
git diff main origin/main
# 1件の履歴を見る
git log -p -1
```
# Gitとは
Git_Guid.mdを参照
```
```