Gitハンズオン
用語など
成果物管理
バージョン管理システム、分散バージョン管理
ブランチを切る
コミット
リモートリポジトリ、ローカルリポジトリ
ユーザー名・メールアドレスの設定
$ git config --global user.name "Your Name"
$ git config --global user.email "your.email@example.com"
ローカルリポジトリの作成
$ mkdir my_project
$ cd my_project
$ git init
ファイルの追加
$ vim file1.c
$ git add file1.c
ファイルのコミット
$ git commit
差分の確認
$ git diff
コミットログの確認
$ git log -p
$ git remote add origin ../my_project.git
$ mkdir ../my_project.git
$ cd ../my_project.git
$ git init --bare
$ cd test
$ git push origin main
$ git clone ./repo ./clone-repo
関連
メモ