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

No Push to GitHub button for repos with existing (non origin) remotes #6

Open
baldwindavid opened this issue Jun 24, 2011 · 0 comments

Comments

@baldwindavid
Copy link
Owner

I have some repos that I have never pushed to Github, but have pushed to Heroku. In those cases, I have a "heroku" remote, but no "origin". Adding these repos to this app automatically fills in the primary remote repository (in settings) with the "heroku" remote. For a lot of use cases, that might be desirable. However, once this is filled in, there seems to be no straight-forward method to push the code to a new repo on Github. The app only displays the "Push to Github" button if there are no remotes at all. (Note: I also tried to add the repo via the New Repo method and got an error noted in this issue... #8)

Steps performed

  • Go to Preferences > Repositories > Scan for Repositories - select existing outlined above
  • view repo Settings - primary remote is set as "heroku"
  • no "Push to Github" button displayed...only Sync Branch

How to fix

  • open .git/config
  • remove all remotes
  • restart Github for Mac
  • open repository in app
  • "Push to Github" button now displayed
  • press "Push to Github" and configure
  • reopen .git/config and add the "heroku" remote back in
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

1 participant