Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push Popup #13

Closed
3 tasks done
TimUntersberger opened this issue Sep 16, 2020 · 14 comments
Closed
3 tasks done

Push Popup #13

TimUntersberger opened this issue Sep 16, 2020 · 14 comments
Labels
umbrella An issue that contains multiple subissues

Comments

@TimUntersberger
Copy link
Collaborator

TimUntersberger commented Sep 16, 2020

Actions

  • Push to pushremote
  • Push to upstream
  • Push to branch
@TimUntersberger TimUntersberger added the umbrella An issue that contains multiple subissues label Sep 16, 2020
@tomaskallup
Copy link

Ah I was wondering why the push isn't working at all, is this something I could perhaps help with? This seems to be open for quite some time and for me even the pushremote isn't working.

@RianFuro
Copy link
Contributor

@tomaskallup
Push should be working as long as a remote is already set up. I admit it's pretty bare bones right now though. Also upstream and pushremote do the same thing currently and there is no way to set either from neogit.
You're welcome to help out if you want to :) The relevant parts are in popups/push.lua and lib/git/push.lua. We do want to take over the upstream/pushremote distinction from magit and some prompts to dynamically set the upstream when necessary are definitely needed.

@tomaskallup
Copy link

I think I found the issue, on my end I have a huge file in the repo (97MB) and the push takes a long time. It would be nice to have some sort of progress bar or a loader to indicate, that the push is still ongoing.

@RianFuro
Copy link
Contributor

Totally agree; as I said, pretty bare bones 😅

@itmecho
Copy link

itmecho commented Jul 7, 2021

We do want to take over the upstream/pushremote distinction from magit and some prompts to dynamically set the upstream when necessary are definitely needed

Am I right in thinking this would allow you to create a new local branch and then push it up to remote when it doesn't exist? i.e.git checkout -b my-new-branch && git push --set-upstream origin my-new-branch

At the moment I create the branch with neogit but then run the git push manually

@TimUntersberger
Copy link
Collaborator Author

@itmecho no it would use the upstream but not set it up. Tbh I also think the current implementation is a bit annoying, but I don't really know how to do this correctly yet.

@itmecho
Copy link

itmecho commented Jul 7, 2021

Hmm I was trying to think of how I would do it. Best I came up with was a new option in the push popup for "push and set upstream", then prompt for the remote name (or if there is only one just use that) and then prompt for the remote branch name (which could pre-populate with the current branch name). Those could also be set as defaults in the config.

That's just my use case though, not sure how it would fit in with other people's =\

@itmecho
Copy link

itmecho commented Jul 7, 2021

Hacky version which "worked on my machine"

master...itmecho:proto/set-upstream

@TimUntersberger
Copy link
Collaborator Author

@itmecho I added a switch to the push popup in #131.

@DemonInTheCloset
Copy link

Hi, I am not sure if I should say this here, but could you add a --tags flag for the push popup?

@mcepl
Copy link

mcepl commented Sep 6, 2022

For explanation why there are two https://magit.vc/manual/magit.html#The-Two-Remotes but still doesn’t make sense to me. IMHO, feature branch should never know what its final destination will be and should only be push to my-fork/feature. Whole merging (be it done with pull/merge-requests or via git send-email) should be outside of the local git operations.

@practicalli-johnny
Copy link

I work on many open source projects and set the origin name to the GitHub organisation or user account name, so I know where I am pushing too

It would be very useful to set where neogit pushes to when using p from the push menu

Currently I use e for elsewhere and type in the origin name I use for that repository.

I assume the value of the origin can be ascertained from the local Git repository.

@CKolkey
Copy link
Member

CKolkey commented May 6, 2023

Agreed! I'll be upstreaming some changes that should solve for this with some ability to set git config values

Screenshot 2023-05-06 at 21 04 14

(you can use my fork for now if you don't want to wait)

@ten3roberts
Copy link
Member

Not knowing what you're force pushing to is part of the fun, especially when reviewing pull requests.

Jokes aside, as @CKolkey mentioned we are soon to upstream a lot of QOL improvements to neogit which will for example include better push.

@CKolkey CKolkey closed this as completed Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
umbrella An issue that contains multiple subissues
Projects
None yet
Development

No branches or pull requests

9 participants