Open5
Git の使い方
commit のメッセージに [# issue番号] を入れると、該当する issue ページに自動でリンクを付与
git commit -m "#2 ◯◯の修正"
さらに、 [close #issue番号] をメッセージに入れると、該当するissueを自動でクローズしてくれる
git commit -m "▲▲の修正 close #3"
ブランチを切り替えたい時:checkout
今いるブランチをチェックアウトして、次のところに行くってことかな🤔
git checkout feature
ref: https://qiita.com/harada4atsushi/items/527d5f98320d993b3072
# まずは master へ移動
git checkout master
# リモートから master ブランチを取得し、最新にする
git pull origin master
# master ブランチから作業ブランチを派生
git checkout -b issue-2
-b オプションは、「ブランチの新規作成」と「ブランチの変更」を同時にしてくれるもの
# 変更を追加
git add .
# 変更をコミット(issue番号を明記)
git commit -m "#23 ♢♢を追加"
# プッシュする
git push origin issue-2