git init
リモートのリポジトリを登録
git remote add origin https://github.com/[アカウント]/our-project.git
ローカルのユーザー名を登録
git config user.name [ユーザー名]
git config user.email [email]
登録されているリポジトリを確認する
git remote -v
例:git clone https://githum.com/user/___.git myDir/
branchを新たに作る
git branch [作りたいbranchの名前]
branchを新たに作ってそこへ移動する
git branch -b [作りたいbranchの名前]
branchを消す
git branch -d [branch]
branch のリストをみる
git branch
違うbranchへうつる
git checkout [移るbranchの名前]
branch の変更をmainにmergeする
git checkout main
git merge [branch]