ダブルクリックで英日反転
Applied Sciences · Engineering
Pull while holding unstaged changes: stash → pull → pop
When an auto-updating file like .claude/settings.local.json blocks `git pull --rebase`, stash only that file, pull, then restore it. No need to stash your entire working tree.
The pattern
- git stash push -m "tmp" <file> — stash only the blocking file
- git pull --rebase — pull with rebase now succeeds
- git stash pop — restore the file from the stash
Key points
- You can name a single file in stash push — no need to stash everything
- If pop conflicts, resolve manually before continuing
- If you will never commit the file, adding it to .gitignore is the cleaner long-term fix
Mindset
- An error message is a hint, not a dead end
- Recognising the stash pattern the moment you see "unstaged changes" keeps your flow uninterrupted
→ Stash only what blocks you, pull --rebase, pop — and consider .gitignore for files you never commit.
Applied Sciences · Engineering
未ステージ変更を持ったままpullする:stash → pull → pop
.claude/settings.local.json のような自動更新ファイルが `git pull --rebase` をブロックするときは、そのファイルだけをstash(一時退避)して、pullして、元に戻す。作業ツリー全体を退避する必要はない。
手順
- git stash push -m "tmp" <ファイル> — 邪魔なファイルだけをstash
- git pull --rebase — rebaseつきpullが通るようになる
- git stash pop — stashからファイルを復元する
ポイント
- stash push にファイルを指定すれば、全体を退避しなくて済む
- pop時に競合(conflict)が出たら手動で解決してから続ける
- どうせコミットしないファイルなら .gitignore に追加するのが根本的な解決策
考え方
- エラーメッセージは行き止まりではなく、次の一手へのヒント
- 「未ステージの変更あり」を見た瞬間にstashパターンを思い出せれば、フローは止まらない
→ 邪魔なファイルだけstashし、pull --rebaseし、popする。コミットしないファイルは.gitignoreで根本解決。
Applied Sciences · Engineering
Pull while holding unstaged changes: stash → pull → pop
When an auto-updating file like .claude/settings.local.json blocks `git pull --rebase`, stash only that file, pull, then restore it. No need to stash your entire working tree.
The pattern
- git stash push -m "tmp" <file> — stash only the blocking file
- git pull --rebase — pull with rebase now succeeds
- git stash pop — restore the file from the stash
Key points
- You can name a single file in stash push — no need to stash everything
- If pop conflicts, resolve manually before continuing
- If you will never commit the file, adding it to .gitignore is the cleaner long-term fix
Mindset
- An error message is a hint, not a dead end
- Recognising the stash pattern the moment you see "unstaged changes" keeps your flow uninterrupted
→ Stash only what blocks you, pull --rebase, pop — and consider .gitignore for files you never commit.
Applied Sciences · Engineering
未ステージ変更を持ったままpullする:stash → pull → pop
.claude/settings.local.json のような自動更新ファイルが `git pull --rebase` をブロックするときは、そのファイルだけをstash(一時退避)して、pullして、元に戻す。作業ツリー全体を退避する必要はない。
手順
- git stash push -m "tmp" <ファイル> — 邪魔なファイルだけをstash
- git pull --rebase — rebaseつきpullが通るようになる
- git stash pop — stashからファイルを復元する
ポイント
- stash push にファイルを指定すれば、全体を退避しなくて済む
- pop時に競合(conflict)が出たら手動で解決してから続ける
- どうせコミットしないファイルなら .gitignore に追加するのが根本的な解決策
考え方
- エラーメッセージは行き止まりではなく、次の一手へのヒント
- 「未ステージの変更あり」を見た瞬間にstashパターンを思い出せれば、フローは止まらない
→ 邪魔なファイルだけstashし、pull --rebaseし、popする。コミットしないファイルは.gitignoreで根本解決。
Related notes
- Agentic Commerce — ACP and Visibility into Being 'Bought by AI'
- browser-to-api — a Browserbase skill that turns a site into OpenAPI from a CDP trace
- Safe tenant-scoped writes to a cloud database — connection, authentication and RLS in one go
- Cloudflare Wrangler and Pages Functions — the deployment tool and the Functions bundle
- Introduction to the Digital Architect (00) — the reality of the profession and the big picture of an original textbook series
- The textbook for becoming a digital architect — table of contents (learning roadmap)