diff --git a/src/data/activity_log/20220731_github_practice.mdx b/src/data/activity_log/20220731_github_practice.mdx new file mode 100644 index 000000000..8b00509bd --- /dev/null +++ b/src/data/activity_log/20220731_github_practice.mdx @@ -0,0 +1,27 @@ +--- +title: github練習 +date: '2022-07-31' +startTime: 21:15 +endTime: 22:15 +participants: +- KentaroMorota +- KentoMorita +topics: +- githubとは +- githubの基本的な使い方 +--- +# githubとは +共有で使うフォルダみたいなもの + +# githubの基本的な使い方 +ターミナル開き方(Shift + Cont + @) +リポジトリからクローンする -> 共有フォルダからコピーして自分のパソコンに置く。 +ブランチを切って移動(git checkout -b <ブランチ名>)->切って移動 (git switch)->移動 +(git branch) 今のブランチと他のブランチを確認 +(git status) 今の状態を確認 +編集を加える。(vscodeで) +(git add .) をターミナルで打つ。ローカルで変更を仮保存する +(git commit -m "<コメントを入れる>") 変更をコメント付きで保存。 +(git pull origin main) みんながやったことを自分のとこに反映 +(git push origin HEAD) 今変更した情報をみんなに共有する +