Skip to content

Improved default remotes #2711

Closed
Closed

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions