CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Push new branches to remote

Open austincondiff opened this issue 1 year ago • 0 comments

Description

We need to allow users to push newly created branches to a remote.

If they have more than one remote...

  • The "Push" button will have ellipsis at the end of the text to indicate to the user a sheet will be opened first. ("Push...")
  • it will open a sheet to prompt them to select a remote to push to once "Push" is clicked.
  • Pnce a remote is selected, the user can click Push.

If they only have one remote...

  • The "Push" button will not have an ellipsis at the end of the text, indicating that action will happen immediately. ("Push")
  • It will push the changes right away once "Push" is clicked.

Alternatives Considered

Open the pick a remote sheet regardless of the number of remotes the project has.

Additional Context

The following command will need to be executed in order to do this.

"git push --set-upstream \(remoteName) \(branchName)"

Screenshots

Right now, this is what it looks like after committing files to a new branch. There is no "Push" button like there is in local branches that are being tracked by a remote branch.

image

austincondiff avatar Apr 13 '24 16:04 austincondiff