Skip to content

Improved default remotes #2711

@technoweenie

Description

@technoweenie

There are currently 3 ways LFS knows which remote to push to:

  1. Commands receive it explicitly through a --remote arg or stdin input.
  2. branch.*.remote (added recently in Tracked remote #2700)
  3. Only remote, if there is only 1 configured remote.
  4. origin.

Proposed changes:

  • Support branch.*.pushRemote (docs)
  • Support remote.pushDefault: Overrides branch.<name>.remote for all branches, and is overridden by branch.<name>.pushRemote for specific branches (docs)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions