You can use other branches on Heroku for development - Heroku only deploys the master branch. A very brief run-down of the commands you'll need are below, but are by no means exhaustive. As you get more familiar with git and branches, you'll find these to be second nature. That said, it's very common to push code to Github (or another git provider) for development, and then only push to Heroku when you want to deploy--but it's certainly not a necessity.
Create a new branch like so: $ git checkout -b development The -b specifies that you want to create a new local branch. Now push it to Heroku: $ git push origin development To start working on a new computer: $ git clone [email protected]:app-name.git $ git checkout -t development Here the -t says to create a tracking branch. When you want to deploy your changes: $ git checkout master $ git merge development $ git push --wuputah On Tue, May 11, 2010 at 8:35 PM, Keenan Brock <[email protected]> wrote: > On my iPhone, > Sorry if this was already addressed. > > Github is free for public archives. Which works for many. > As you mentioned, They also have a paid option if you want private repos > and other options. > > If you google: github Heroku workflow, there are a number of examples of > how to use git and multiple repos. (regardless of whether you choose github > or any other provider) > > When I started, I had multiple computers using Heroku as my git remote > server. > It worked much the same way that svn works. > > The disadvantage being that every time I checked in code, it would deploy. > So I was forced to only check in working code. > > Later, I started storing my code on github or company hosted git repo. Only > pushing to Heroku to deploy. > > Sticking to one remote git repo (on heroku) may meet your needs. > > The neat thing about git is if you pick another hosting provider, you won't > loose anything since all history is local. Pushing to a new provider will > include all history (unlike svn). > > Best of luck, > Keenan > > > On May 11, 2010, at 3:07 PM, dan <[email protected]> wrote: > > i was originally going to use github when someone suggested gitosis, >> since its free >> it felt a little funny having to pay for something that im really only >> using for me, not a team or anything >> the benefit is that id be more proficient at git (if thats considered >> a marketable skill then it may be worth it) >> but im not sure how to setup my project to support both heroku git and >> my own personal git >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Heroku" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<heroku%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<heroku%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
