Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

[REQUEST] - Append Repo and Branch when Pushing #596

Closed
ggedde opened this issue Jan 13, 2017 · 4 comments
Closed

[REQUEST] - Append Repo and Branch when Pushing #596

ggedde opened this issue Jan 13, 2017 · 4 comments

Comments

@ggedde
Copy link

ggedde commented Jan 13, 2017

I am really loving git-plus. Thank you!

I prefer to have my gitconfig set for push.default to be "nothing".
This makes it a requirement that I have to specify a remote and branch when running git push.
This is because I deal with multiple Remotes with the same branches and don't want to make the mistake of pushing the branch to the wrong remote.

However, when running git-plus push it will fail because git-plus just runs "git push".

I really like how when running git-plus pull that a prompt comes up to select which remote and branch I want to pull.

I would like to see the same option for push. Maybe something in the settings like: "Prompt for remote/branch on push". If checked then a prompt will come up when pushing to select the remote/branch and it will be appended to the "git push" command so it will work if push.default is set to "nothing".

Also if "Pull before Pushing" is checked then it just uses the remote/branch that was chosen on pull for the push and append it to the "git push" command. That way you are not prompted twice.

Thanks

@akonwi
Copy link
Owner

akonwi commented Jan 16, 2017

I'll try to make this happen

@ggedde
Copy link
Author

ggedde commented Jan 16, 2017

Awesome!
Thanks

@akonwi
Copy link
Owner

akonwi commented Jan 18, 2017

If you have multiple remotes, you will be prompted to select one. And if you have only one, then the push command is actually git push [remote]. I think all I need to add is the toggle to prompt for which branch to push to. This means in your projects with a single remote, you'll only be prompted for the branch

akonwi pushed a commit that referenced this issue Jan 19, 2017
akonwi pushed a commit that referenced this issue Jan 19, 2017
Pushing and pulling from upstream is now the default behavior
@akonwi akonwi closed this as completed in 3a6c825 Jan 23, 2017
@ggedde
Copy link
Author

ggedde commented Jan 23, 2017

Awesome, that worked!
FYI, for others in case you missed it, there is a new setting that you have to check if you want to get prompted when pulling/pushing.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants