Skip to content

git sync should be more controllable #574

@cloudhan

Description

@cloudhan

Description of the bug

git sync will move all branches to be based on origin/main which is intrusive. As the users (me, particularly) might not want to fiddle around with upstream main. For example, upstream main may has CI break that needs to be fixed or testing failure after merge. And once you pulled, there is no easy way to fix it, maybe reset origin/main. Sync with local main solves the problem by leaving to control to users. As we can easily pick one commit from the main branch history just by examine the CI status of them. sync all local branches onto it and keep working and wait for upstream fix and then pull and sync again.

So, in my opinion, sync should not fetch, should not have network activities involved. It should just automatically move all my working commit to a dest.

Expected behavior

git sync should be controllable

Actual behavior

git sync is not controllable

Version of rustc

not apply

Version of git-branchless

not apply

Version of git

not apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions