diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 909e683..19341da 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,15 +1,14 @@ { - "name": "git-github-tutorial", + "name": "git-github-tutorial-slides", "image": "alpine/git:latest", "runArgs": [ - "--name=git-github-tutorial" + "--name=git-github-tutorial-slides" ], "customizations": { "vscode": { "extensions": [ "github.vscode-pull-request-github", "marp-team.marp-vscode", - "mhutchie.git-graph", "streetsidesoftware.code-spell-checker" ], "settings": { diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 6b20f58..0000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: GitHub Pages - -on: - release: - types: - - created - -jobs: - job: - name: GitHub Pages - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Get tag - id: tag - run: echo "::set-output name=tag::${GITHUB_REF##*/}" - - name: Build docs - uses: docker://marpteam/marp-cli:latest - with: - args: docs/index.md -o docs/index.html - env: - MARP_USER: root:root - - name: Deploy docs - uses: peaceiris/actions-gh-pages@v3 - with: - destination_dir: ${{ steps.tag.outputs.tag }} - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages - publish_dir: docs diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..35e0954 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish + +on: + release: + types: + - created + +jobs: + job: + name: Publish slide deck + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v6 + - id: tag + run: echo "tag=${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" + - uses: docker://marpteam/marp-cli:v4.2.3 + with: + args: slides/index.md -o slides/index.html + env: + MARP_USER: root:root + - uses: peaceiris/actions-gh-pages@v4 + with: + destination_dir: ${{ steps.tag.outputs.tag }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: slides diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yaml similarity index 55% rename from .github/workflows/tests.yml rename to .github/workflows/tests.yaml index 2b68acc..3731afb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yaml @@ -10,12 +10,12 @@ on: jobs: job: - name: Build docs + name: Build slide deck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: docker://marpteam/marp-cli:latest + - uses: actions/checkout@v6 + - uses: docker://marpteam/marp-cli:v4.2.3 with: - args: docs/index.md -o docs/index.html + args: slides/index.md -o slides/index.html env: MARP_USER: root:root diff --git a/LICENSE b/LICENSE index 61568f8..e67de17 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License -Copyright (c) 2020-2022 Radio Astronomy Laboratory +Copyright (c) 2020-2022 Radio Astronomy Laboratory, Nagoya University +Copyright (c) 2026 Radio Astronomy Laboratory, Kitami Institute of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d0cfb58..b88ba30 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# git-github-tutorial +# git-github-tutorial-slides Slide deck for the Git and GitHub tutorial -## How to update and publish docs +## How to update and publish the slide deck -1. Create a GitHub issue and a topic branch -1. Commit your updates on `docs/*` +1. Create a GitHub issue and a topic branch `/issue` (e.g. `astropenguin/issue1`) +1. Commit your updates on `slides/*` 1. Merge your commits into the main branch -1. Create a release with a tag `v..` (e.g. `v2022.9.0`) -1. The docs will be published at `https://a-lab-nagoya.github.io/git-github-tutorial//` +1. Create a release with a tag `v..` (e.g. `v2026.1.0`) +1. The slide deck will be published at `https://kit-sas.github.io/git-github-tutorial-slides/` diff --git a/docs/images/decode-actions.png b/docs/images/decode-actions.png deleted file mode 100644 index 124e0e8..0000000 Binary files a/docs/images/decode-actions.png and /dev/null differ diff --git a/docs/images/decode-code.png b/docs/images/decode-code.png deleted file mode 100644 index 218f863..0000000 Binary files a/docs/images/decode-code.png and /dev/null differ diff --git a/docs/images/decode-issues.png b/docs/images/decode-issues.png deleted file mode 100644 index 1d0fce5..0000000 Binary files a/docs/images/decode-issues.png and /dev/null differ diff --git a/docs/images/tutorial-commit-1.png b/docs/images/tutorial-commit-1.png deleted file mode 100644 index 481235a..0000000 Binary files a/docs/images/tutorial-commit-1.png and /dev/null differ diff --git a/docs/images/tutorial-commit-2.png b/docs/images/tutorial-commit-2.png deleted file mode 100644 index 7d3a449..0000000 Binary files a/docs/images/tutorial-commit-2.png and /dev/null differ diff --git a/docs/images/tutorial-commit-3.png b/docs/images/tutorial-commit-3.png deleted file mode 100644 index 5671fd3..0000000 Binary files a/docs/images/tutorial-commit-3.png and /dev/null differ diff --git a/docs/images/tutorial-github-issue.png b/docs/images/tutorial-github-issue.png deleted file mode 100644 index 916b879..0000000 Binary files a/docs/images/tutorial-github-issue.png and /dev/null differ diff --git a/docs/images/tutorial-github-pr-1.png b/docs/images/tutorial-github-pr-1.png deleted file mode 100644 index 98f97a7..0000000 Binary files a/docs/images/tutorial-github-pr-1.png and /dev/null differ diff --git a/docs/images/tutorial-github-pr-2.png b/docs/images/tutorial-github-pr-2.png deleted file mode 100644 index fc4a010..0000000 Binary files a/docs/images/tutorial-github-pr-2.png and /dev/null differ diff --git a/docs/images/tutorial-github-pr-3.png b/docs/images/tutorial-github-pr-3.png deleted file mode 100644 index d2c8402..0000000 Binary files a/docs/images/tutorial-github-pr-3.png and /dev/null differ diff --git a/docs/images/tutorial-github-pr-4.png b/docs/images/tutorial-github-pr-4.png deleted file mode 100644 index ee7bf20..0000000 Binary files a/docs/images/tutorial-github-pr-4.png and /dev/null differ diff --git a/docs/images/tutorial-github-pr-5.png b/docs/images/tutorial-github-pr-5.png deleted file mode 100644 index d1d4091..0000000 Binary files a/docs/images/tutorial-github-pr-5.png and /dev/null differ diff --git a/docs/images/tutorial-topic-branch-1.png b/docs/images/tutorial-topic-branch-1.png deleted file mode 100644 index ffd710e..0000000 Binary files a/docs/images/tutorial-topic-branch-1.png and /dev/null differ diff --git a/docs/images/tutorial-topic-branch-2.png b/docs/images/tutorial-topic-branch-2.png deleted file mode 100644 index a6a40cc..0000000 Binary files a/docs/images/tutorial-topic-branch-2.png and /dev/null differ diff --git a/slides/images/decode-docs.png b/slides/images/decode-docs.png new file mode 100644 index 0000000..d50e3ec Binary files /dev/null and b/slides/images/decode-docs.png differ diff --git a/slides/images/decode-readme.png b/slides/images/decode-readme.png new file mode 100644 index 0000000..d7784e8 Binary files /dev/null and b/slides/images/decode-readme.png differ diff --git a/docs/images/github-workflow.png b/slides/images/github-workflow.png similarity index 100% rename from docs/images/github-workflow.png rename to slides/images/github-workflow.png diff --git a/slides/images/tutorial-commit-1.png b/slides/images/tutorial-commit-1.png new file mode 100644 index 0000000..56baa07 Binary files /dev/null and b/slides/images/tutorial-commit-1.png differ diff --git a/slides/images/tutorial-commit-2.png b/slides/images/tutorial-commit-2.png new file mode 100644 index 0000000..6457483 Binary files /dev/null and b/slides/images/tutorial-commit-2.png differ diff --git a/slides/images/tutorial-commit-3.png b/slides/images/tutorial-commit-3.png new file mode 100644 index 0000000..f310260 Binary files /dev/null and b/slides/images/tutorial-commit-3.png differ diff --git a/slides/images/tutorial-commit-4.png b/slides/images/tutorial-commit-4.png new file mode 100644 index 0000000..6aa769e Binary files /dev/null and b/slides/images/tutorial-commit-4.png differ diff --git a/slides/images/tutorial-commit-5.png b/slides/images/tutorial-commit-5.png new file mode 100644 index 0000000..1035f47 Binary files /dev/null and b/slides/images/tutorial-commit-5.png differ diff --git a/slides/images/tutorial-github-issue.png b/slides/images/tutorial-github-issue.png new file mode 100644 index 0000000..dce7936 Binary files /dev/null and b/slides/images/tutorial-github-issue.png differ diff --git a/slides/images/tutorial-github-pr-1.png b/slides/images/tutorial-github-pr-1.png new file mode 100644 index 0000000..51fc983 Binary files /dev/null and b/slides/images/tutorial-github-pr-1.png differ diff --git a/slides/images/tutorial-github-pr-2.png b/slides/images/tutorial-github-pr-2.png new file mode 100644 index 0000000..1efb4c3 Binary files /dev/null and b/slides/images/tutorial-github-pr-2.png differ diff --git a/slides/images/tutorial-github-pr-3.png b/slides/images/tutorial-github-pr-3.png new file mode 100644 index 0000000..0273bd3 Binary files /dev/null and b/slides/images/tutorial-github-pr-3.png differ diff --git a/slides/images/tutorial-github-pr-4.png b/slides/images/tutorial-github-pr-4.png new file mode 100644 index 0000000..b6d93a3 Binary files /dev/null and b/slides/images/tutorial-github-pr-4.png differ diff --git a/slides/images/tutorial-github-pr-5.png b/slides/images/tutorial-github-pr-5.png new file mode 100644 index 0000000..a068d5a Binary files /dev/null and b/slides/images/tutorial-github-pr-5.png differ diff --git a/slides/images/tutorial-github-pr-6.png b/slides/images/tutorial-github-pr-6.png new file mode 100644 index 0000000..e40f74a Binary files /dev/null and b/slides/images/tutorial-github-pr-6.png differ diff --git a/slides/images/tutorial-topic-branch-1.png b/slides/images/tutorial-topic-branch-1.png new file mode 100644 index 0000000..0002c45 Binary files /dev/null and b/slides/images/tutorial-topic-branch-1.png differ diff --git a/slides/images/tutorial-topic-branch-2.png b/slides/images/tutorial-topic-branch-2.png new file mode 100644 index 0000000..e43360a Binary files /dev/null and b/slides/images/tutorial-topic-branch-2.png differ diff --git a/docs/index.md b/slides/index.md similarity index 50% rename from docs/index.md rename to slides/index.md index 2c95306..d587663 100644 --- a/docs/index.md +++ b/slides/index.md @@ -7,12 +7,12 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') # Git and GitHub tutorial -**@ 2024-06-12 / by Akio Taniguchi (project assistant professor)** +**On: 2026-01-15 / At: 第1研究室 / By: 谷口暁星** - **目的:** - 世界標準のバージョン管理システム[Git](https://git-scm.com/)と開発プラットフォーム[GitHub](https://github.com/)を使ったソフトウェア開発の方法をざっくり学ぶ - **目標:** - - 実際にGitを使って[A研のGitHub organization](https://github.com/a-lab-nagoya)上のリポジトリにコミット(コードを登録)することで開発の流れを理解する + - 実際にGitを使って[宇宙天文科学グループ](https://github.com/kit-sas)のリポジトリにコミット(コードを追加・登録)することで開発の流れを理解する --- @@ -22,29 +22,29 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') 1. バージョン管理システムGit 1. ソフトウェア開発プラットフォームGitHub 1. GitとGitHubを使った開発の流れ -1. [a-lab-nagoya/playground](https://github.com/a-lab-nagoya/playground)を使ったチュートリアル +1. [テストリポジトリ](https://github.com/kit-sas/git-github-tutorial-playground)を使ったチュートリアル --- ## バージョン管理とは何か - **バージョン管理(en: version control)** - - ファイルやディレクトリ内容のバージョン(変更履歴=誰がいつどのような変更を加えたか)を保存して、変更内容を確認したり任意の時点に戻したりできるようにすること + - ファイルやフォルダ内容のバージョン(変更履歴=誰がいつどのような変更を加えたか)を保存して、変更内容を確認したり任意の時点に戻したりできるようにすること - **バージョン管理システム(en: version control system or VCS)** - バージョン管理を支援するコマンドラインツールやアプリ - **色々なバージョン管理システム** - Git, Subversion, Mercurial: コマンドラインツール - - macOS Time Machine: Mac全体のバックアップ + - Windows バックアップ, macOS Time Machine: OSレベル --- ## バージョン管理はなぜ必要か -- 変更履歴の完全な追跡 +- **変更履歴の完全な追跡** - バグが発生した場合も発見や対処が用意。また、任意の時点の状態に戻れるので、開発環境の再現性が高い。 -- 変更目的の明確化 +- **変更目的の明確化** - ファイル名や時刻による管理では、変更をなぜ加えたかが明確でない。意味単位で管理することが複数人での開発では重要。 -- バージョン管理の一元化 +- **バージョン管理の一元化** - 標準的なVCSを使うことで、共通の方法でバージョン管理でき、かつ変更履歴を一箇所に集約できる。 --- @@ -58,20 +58,21 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') ## バージョン管理システムGit - **[Git](https://git-scm.com/)** - - 2024年現在、ソフトウェア開発において最も使われているVCS + - 2026年現在、ソフトウェア開発において最も使われているVCS - もともとは[Linuxのソースコード](https://github.com/torvalds/linux)管理のために作成された - **分散型のバージョン管理** - - リポジトリ(en: repository)と呼ばれる、変更履歴を保存するデータベースのような仕組みを使ってバージョン管理する - - ユーザごとにローカルリポジトリを持ち、変更はここに保存 - - サーバ上のリモートリポジトリにローカルの内容を反映する + - リポジトリと呼ばれる、変更履歴を保存するデータベースのような仕組みを使ってバージョン管理する + - ユーザーごとにローカルリポジトリを持ち変更内容を保存 + - ローカルリポジトリの変更内容を、サーバ上のリモートリポジトリに同期することで、複数ユーザーによる同時開発を実現 --- ## バージョン管理システムGit -- **Gitのリポジトリの仕組み** - - バージョン:ディレクトリに存在するファイルのある時点での完全な内容をスナップショットとして保存したもの(ディレクトリをzipしてバックアップする感覚に近い) - - リポジトリ:複数のスナップショットとそれらの対応関係を保存したデータベースのようなもの +- **Gitの仕組み** + - フォルダのある時点での中身(ファイル・サブフォルダ)をスナップショットとして保存し、これをバージョンとみなして管理する(フォルダをzipしてバックアップを繰り返すイメージ) +- **重要な用語** + - リポジトリ(en: repository):複数のスナップショット(バージョン)とそれらの対応関係を保存したデータベースのようなもの - コミット(en: commit):スナップショットを作成して変更を確定すること(またはバージョンそのものを指す場合もある) --- @@ -85,7 +86,7 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') - **重要な用語** - ブランチ(en: branch):分岐した枝の先頭のコミット - マージ(en: merge):2つのブランチを統合して一つにすること - - main(master)ブランチ:リポジトリのデフォルトのブランチ + - メインブランチ(`main`):リポジトリのデフォルトのブランチ --- @@ -123,7 +124,7 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') ## ソフトウェア開発プラットフォームGitHub - **[GitHub](https://github.com)** - - 全世界で[1億人以上](https://github.com/about)が利用する開発プラットフォーム + - 全世界で[1.5億人以上](https://github.com/about)が利用する開発プラットフォーム - 様々な[オープンソースプロジェクト](https://github.com/topics/python?l=python&o=desc&s=forks)のバージョン管理・プロジェクト管理(バグ報告・新機能提案)に利用されている - **主な機能** - Gitのリモートリポジトリのホスティング @@ -142,25 +143,19 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') - [ドキュメンテーションの公開](https://github.com/astropenguin/azely) - [論文・プロシーディング執筆](https://github.com/astropenguin/ss-2020-proceedings) - **ちなみにこのスライドもGitHubで管理しています** - - [a-lab-nagoya/git-github-tutorial](https://github.com/a-lab-nagoya/git-github-tutorial) + - [kit-sas/git-github-tutorial-slides](https://github.com/kit-sas/git-github-tutorial-slides) --- -![bg 80%](images/decode-code.png) +![bg 80%](images/decode-readme.png) --- -![bg 80%](images/decode-issues.png) - - - ---- - -![bg 80%](images/decode-actions.png) +![bg 80%](images/decode-docs.png) - + --- @@ -171,7 +166,7 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') 1. ローカルにリポジトリをコピー(クローン)する 1. ローカルでIssue番号付きのトピックブランチを作成 1. ローカルで新機能をコミット→プッシュ -1. Pull requestでトピックブランチをmainブランチにマージ +1. Pull requestでトピックブランチを`main`ブランチにマージ - この際に他の人によるレビューや自動テストを受ける - ダメだったら修正をコミット→プッシュしてやり直し @@ -190,125 +185,185 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg') - 一連のコミットの目的を明確化させるとともに、開発者が一つの機能開発に集中できるようにするため - (逆に言うと複数の作業を一度に行わせないようにするため) - プルリクエスト - - トピックブランチをmain(master)にマージする前にレビューやテストを強制することでバグを未然に防ぐ + - トピックブランチを`main`ブランチにマージする前にレビューやテストを強制することでバグを未然に防ぐ - 第三者からの提案を安全な形で受けられる(social coding) --- -## Playgroundを使ったチュートリアル +## テストリポジトリを使ったチュートリアル - **事前準備** - - Gitのインストール(各自) - - [Visual Studio Code](https://azure.microsoft.com/ja-jp/products/visual-studio-code/)(VS Code)のインストール(各自) - - [Git Graph](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph)(VS Code拡張機能)のインストール(各自) - - [GitHub](https://github.com/)アカウントの作成(各自) - - GitHubアカウントの[A-lab organization](https://github.com/a-lab-nagoya)への登録(谷口) + - Gitの各自マシンへのインストール([Windows](https://git-scm.com/install/windows), [macOS](https://git-scm.com/install/mac)) + - [VS Code](https://code.visualstudio.com/Download)の各自マシンへのインストール + - [GitHubアカウントの作成](https://github.com/signup) + - :warning: ユーザー名は公開されます(例:[astropenguin](https://github.com/astropenguin)) + - :warning: メールアドレスはデフォルトでは公開されますので、追加の非公開設定を推奨します(次ページ) -```shell -$ brew install git -$ brew cask install visual-studio-code -$ code --install-extension mhutchie.git-graph -``` +--- + +## テストリポジトリを使ったチュートリアル + +- **事前準備(続き)** + - GitHub登録メールアドレスの非公開設定 + 1. アカウント作成後に[メール設定](https://github.com/settings/emails)にアクセス + 1. `Keep my email addresses private`の設定をON + 1. :white_check_mark: 生成されたダミーの公開アドレスを控えておく + (例:<13254278+astropenguin@users.noreply.github.com>) + - GitHubアカウントの[宇宙天文科学グループ](https://github.com/kit-sas)への登録 + - :white_check_mark: 谷口にGitHubアカウント名を教えてください! --- -## Playgroundを使ったチュートリアル +## テストリポジトリを使ったチュートリアル - **リモートリポジトリのクローン(en: clone)** - - [playground](https://github.com/a-lab-nagoya/playground)をクローンし、ローカルリポジトリを作成する + - [リモートリポジトリ](https://github.com/kit-sas/git-github-tutorial-playground)をクローンしローカルリポジトリを作成する - ローカルリポジトリをVS Codeで開く ```shell - $ git clone https://github.com/a-lab-nagoya/playground.git - $ code playground # またはVS Codeでplaygroundディレクトリを開く + $ git clone https://github.com/kit-sas/git-github-tutorial-playground.git + $ code git-github-tutorial-playground # またはVS Codeで当該フォルダを選択して開く ``` - **VS Codeの機能の概観** - VS Codeのエクスプローラ・ソース管理の機能を確認する - - Git Graphでコミット履歴を見る(`⌘⇧P` → view git graph) + - ソース管理のグラフ表示でコミット履歴を確認する --- -## Playgroundを使ったチュートリアル +## テストリポジトリを使ったチュートリアル - **Gitの初期設定(ローカル)** - `ctrl-backquote`でVS Codeのターミナルを開いて以下を設定する ```shell $ git config --global user.name "" - $ git config --global user.email "" + $ git config --global user.email "" ``` - **GitHub issueの作成(GitHub)** - - [New issue](https://github.com/a-lab-nagoya/playground/issues)からissueを作成する(何でも良い) - - Issueの例:[Work Bのタスクを完了させる #51](https://github.com/a-lab-nagoya/playground/issues/51) - - 発行されたissue番号(例:#51)を各自で控えておく + - [New issue](https://github.com/kit-sas/git-github-tutorial-playground/issues)からissueを作成する + (例:[Project Aのタスクを完了させる #3](https://github.com/kit-sas/git-github-tutorial-playground/issues/3)) + - :white_check_mark: 発行されたissue番号(例:`#3`)を各自で控えておく --- ![bg 80%](images/tutorial-github-issue.png) + + --- ## Playgroundを使ったチュートリアル - **トピックブランチの作成(ローカル)** - VS Codeでブランチを作成する(`⌘⇧P` → create branch) - - ブランチ名にはissue番号を含める(例:astropenguin/issue51) + - ブランチ名にはissue番号を含める(例:`astropenguin/issue3`) + - :white_check_mark: VS Codeのボトムバーに作成したブランチ名が表示されていることを確認して次に進む - **ファイルやコードを編集する(ローカル)** - - ここでは`2024/todo.md`の該当タスクにチェックを付ける + - ここでは`2026/projects.md`の該当タスクにチェックを付ける + (例:`- [ ] Task` → `- [x] Task`と変更する) + - :white_check_mark: VS Codeのソース管理で正しい差分であることを確認する + +--- + +![bg 80%](images/tutorial-topic-branch-1.png) + + + +--- + +![bg 80%](images/tutorial-topic-branch-2.png) + + + +--- + +![bg 80%](images/tutorial-commit-1.png) + + + +--- + +## Playgroundを使ったチュートリアル + +- **変更をステージする(ローカル)** + - VS Codeのソース管理からコミットしたい変更箇所をステージ + - :white_check_mark: コミットしたい変更箇所のみステージされ、そうでない変更箇所(あれば)はステージされていない状態であることを確認 - **変更をコミットする(ローカル)** - - VS Codeのソース管理から変更をコミットする - - メッセージにはissue番号を含める(#51 Close task of Work B) + - VS Codeのソース管理からステージした変更箇所をコミットする + - コミットメッセージの先頭にはissue番号を含めると良い + (例:`#3 Close the task of Project A`) + - :white_check_mark: グラフ表示で作成されたコミット(ノード)を確認 + +--- + +![bg 80%](images/tutorial-commit-2.png) + + --- -![bg 90%](images/tutorial-topic-branch-1.png) +![bg 80%](images/tutorial-commit-3.png) + + --- -![bg 90%](images/tutorial-topic-branch-2.png) +![bg 80%](images/tutorial-commit-4.png) + + + +--- + +![bg 80%](images/tutorial-commit-5.png) + + --- ## Playgroundを使ったチュートリアル - **変更をプッシュする(ローカル→GitHub)** - - リモートブランチへプッシュする(`⌘⇧P` → push) - - Git Graphでプッシュされたことを確認してみよう + - リモートブランチへプッシュする(`⌘⇧P` → publish branch) + - :white_check_mark: ソース管理のグラフ表示でプッシュされたことを確認 - **変更をマージする(GitHub)** - - [New pull request](https://github.com/a-lab-nagoya/playground/compare)からトピックブランチをmainブランチにマージするためのプルリクエストを作成する + - [New pull request](https://github.com/kit-sas/git-github-tutorial-playground/compare)からトピックブランチを`main`ブランチにマージするためのプルリクエストを作成する - `base: main`、`compare: <作成した自分のブランチ名>`となるようにする - レビュワーを誰か一人指定する(例:[astropenguin](https://github.com/astropenguin)) - - レビューが通ったらMerge pull requestからマージする + - :white_check_mark: レビューが通ったらMerge pull requestからマージする --- -![bg 90%](images/tutorial-commit-1.png) +![bg 80%](images/tutorial-github-pr-1.png) ---- - -![bg 90%](images/tutorial-commit-2.png) + --- -![bg 90%](images/tutorial-commit-3.png) +![bg 80%](images/tutorial-github-pr-2.png) ---- - -![bg 90%](images/tutorial-github-pr-1.png) + --- -![bg 90%](images/tutorial-github-pr-2.png) +![bg 80%](images/tutorial-github-pr-3.png) + + --- -![bg 90%](images/tutorial-github-pr-3.png) +![bg 80%](images/tutorial-github-pr-4.png) + + --- -![bg 90%](images/tutorial-github-pr-4.png) +![bg 80%](images/tutorial-github-pr-5.png) + + --- -![bg 90%](images/tutorial-github-pr-5.png) +![bg 80%](images/tutorial-github-pr-6.png) + + ---