You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
push: config.yaml from unpushed local commits still reaches the remote's history #366
At git_root: root, push keeps config.yaml out of version control: rootScopeSafetySweep (cmd/skillshare/gitroot.go:106) calls EnsureConfigUntracked (internal/git/scope.go:226), which runs git rm -r --cached config.yaml and commits the removal.
This only removes the file from the new commit. If a local, not-yet-pushed commit already tracks config.yaml (for example, it was force-added by mistake), push adds a "stop tracking" commit on top and pushes both. The machine-specific config.yaml, with its local paths, then stays in the remote's history.
Repro
Root scope repo with an upstream, config.yaml in .gitignore.
git add -f config.yaml && git commit -m oops (do not push).
skillshare push.
The remote's history contains the oops commit, which includes config.yaml.
Options
Before pushing, detect local commits ahead of @{u} that touch config.yaml and refuse, telling the user how to rewrite them (e.g. an interactive rebase or git commit --amend).
Or offer to rewrite those unpushed commits. Riskier: Skillshare never rewrites history today.
Activity
fix(push): refuse unpushed config.yaml history at root scope (runkids…