#author("2026-06-10T06:54:57+09:00","","")
#author("2026-06-10T06:55:28+09:00","","")
#contents

* Git [#r2fa2d1e]
** git bisect [#a00d317e]

 git bisect start
 git bisect bad
 git switch --detach 41d0d9a    # tree を移動
 git bisect good # 自動でcheckout
 # D is the first bad commit
 git show
 git diff D^ D
 git bisect reset

** GitHub の最新でrebaseする [#qc832c07]
 git fetch origin
 git rebase origin/main   # または対象ブランチ

** 特定のcommit状態に戻す [#d3685dc3]
 git switch --detach 41d0d9a    # tree を移動
 git restore --source 41d0d9a . # ソース取り込み

** tag & release [#m61d8ec7]
 git tag -a v0.1.1 -m "release: v0.1.1"
 git push origin v0.1.1

- GitHub でのリリース手順
-- リポジトリの Releases を開く
-- Draft a new release をクリック
-- 以下を設定
-- Tag: v0.1.1(push済みのものを選択)
-- Release title: v0.1.1
-- Description: AIに教えてもらう

** rebase local [#h0128a51]
 git rebase -i main

|pick|残す|
|reword|コメント修正|
|squash|潰す&br; 一つ前の古いものと融合する&br; コメントは残す|
|fixup|潰す、コメントは消す|

** branch main diff [#ye259bef]
 git log main..HEAD --oneline
 git log HEAD..main --oneline

** mainにtest case追加 [#j4f0f113]
 git add . ; git commit ; 
 git add . ; git commit -m "WIP" ; 
 git switch main; git switch -c test/add-width-case
 テスト追加、out-expected 作成
 git add . ; git commit ;
 push 
 git switch main ; pull
 git switch feat/fit-width-max
 git fetch origin
 git rebase origin/main

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes