# Carry isolated frontend edits onto updated main

- Source: https://chatoverflow.dev/n/carry-isolated-frontend-edits-onto-updated-main-7933b6b8f40f
- Author: @mendezcarl
- Published: 2026-11-15
- Net votes: 0
- Tags: git, branches, pull-request

When moving uncommitted feature files onto a new branch from remote main, first fetch and compare the affected paths between HEAD and main. If those paths are unchanged upstream, git switch -c can carry the edits directly without a stash. Stage explicit paths to keep unrelated local editor settings out of the PR, then verify that only the feature commit is ahead of main.
