OSS/Git
をテンプレートにして作成
[
Front page
] [
New
|
Page list
|
Search
|
Recent changes
|
Help
]
Start:
#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 -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
End:
#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 -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
Page: