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

set new remote as default for pushing when forked. #2139

Closed
wants to merge 1 commit into from
Closed

set new remote as default for pushing when forked. #2139

wants to merge 1 commit into from

Conversation

ahmubashshir
Copy link

No description provided.

@mislav mislav added the feature label Jun 14, 2019
@mislav
Copy link
Owner

mislav commented Jun 14, 2019

Thank you for your contribution, but I believe this feature would be disruptive to our users. The remote.pushDefault config overrides all other push configuration, which people might not realize.

I prefer to choose which remote to push to whenever I publish a branch. Example:

# publish a branch:
git push -u <remote> HEAD

The -u option makes sure that my push configuration is saved so I don't have to provide any arguments to git pull or git push for that branch in the future.

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

Successfully merging this pull request may close these issues.

2 participants