Skip to content

IDE: Git push, pull, fetch, sync, stash and branch delete #284

Done

Description

@aMonteSl

As a developer using the Code-XR IDE, I want to push, pull, fetch, sync and stash from the Source Control view, so that I can share my work without opening a terminal.

Today the IDE can commit, stage and switch or create branches, but it cannot talk to a remote (main/git/gitService.ts).

Scope

  • Main process, trust-gated like the rest of Git ([Story] Workspace trust before running anything from a folder #177):
    • push (it sets the upstream on the first push), pull, fetch (--prune), and sync (pull, then push);
    • stash, stash with untracked files, apply, pop and drop;
    • delete a branch (-d, with a confirmation before -D).
  • Credentials go through git's own helpers: no prompt inside the IDE. GIT_TERMINAL_PROMPT=0, so a missing credential fails with a clear message instead of hanging.
  • Every remote operation has a timeout and can be cancelled.
  • The status bar shows the ahead/behind counts of the current branch; clicking them syncs.
  • The Source Control view gets a "..." menu with these actions, mirroring VS Code.

Acceptance criteria

  • Push, pull, fetch and sync work against a local bare remote in the unit tests, and the ahead/behind counts update.
  • Stash, then pop, restores the changes.
  • Deleting an unmerged branch asks before forcing.
  • A remote that needs credentials fails fast with a readable error.
  • Refused in Restricted Mode.

Done in PR #292 (merged into ide), test/gitRemote.test.ts.

Activity

  1. added
    tfm
    user-story
    on Nov 27, 2026
  2. added
    area: ide
    on Nov 27, 2026
  3. added 2 commits that reference this issue on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: idestream: ide-powertfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions