Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 890 Bytes

File metadata and controls

78 lines (54 loc) · 890 Bytes

gitのサンプル

起動

docker compose build
docker compose up -d

gitのバージョン

docker compose exec myubuntu git --version

gitの設定

docker compose exec myubuntu bash
git config --global user.name "Your Name"
git config --global user.email your@email.address.com

gitリポジトリの初期化

git init your_repository_name
cd your_repository_name/

ステージングとコミット

git add main.py
git commit -m "your commit lot" main.py

ログ表示

git log

作業ディレクトリの状態

git status

コミット間差分

git diff

ブランチ名の変更

git branch -M main

ブランチの作成

git branch new_branch_name

ブランチの切り替え

git branch branch_name

停止

docker compose down