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

feat: git --set-upstream option #44

Closed
ghostsquad opened this issue Apr 24, 2020 · 2 comments
Closed

feat: git --set-upstream option #44

ghostsquad opened this issue Apr 24, 2020 · 2 comments

Comments

@ghostsquad
Copy link

Feature Request

set the upstream branch automatically when pushing

git push --set-upstream origin $(git_current_branch)

@vivaxy
Copy link
Owner

vivaxy commented Apr 25, 2020

Looks fine to me.
A little detail concerned, I'm not sure if --set-upstream on every push is a good practice.

@ghostsquad
Copy link
Author

@vivaxy it's an idempotent action, and doesn't take any time. I alias this to gpsup anyways, and use that all the time. I don't see any downside to doing it on every push.

@vivaxy vivaxy closed this as completed in 50d9258 Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants