Can Heroku work as version control?

I am working with this school project (webapp in RoR) in group of 10 and we get into this fight.

One says we should use Heroku as our web host because it does version control with git.
The other says it’s cool to use Heroku as web host, but it doesn’t not store old code and keep track of changes, so we should set up our own github/assembla-git.

  • Cannot clone from Assembla
  • Git push to Assembla repository from multiple machines
  • XCode 4 (Assembla) SVN Repository “Unable to load revisions”
  • assembla and github
  • connecting visual studio 2010 to assembla SVN
  • SSH the authenticity of can't be established
  • Who is right?

  • ahead by x commits behind by y commits after rebase in GitHub
  • How to push 2 branches from local to remote repo in git?
  • Merge two remote branches in git
  • How to checkout a remote branch in Git?
  • How to commit & push selected files but not all in Git
  • Convert portable msysGit to full installed equivalent (but still be portable)
  • 2 Solutions collect form web for “Can Heroku work as version control?”

    Heroku uses git for deploy. So you can use it as version control too.

    But I would not recommend it. When you push to heroku it’s mean deploy to production. But your code can be not ready for it. Not tested yet, feature not fully implemented and etc.

    You can add 2 remote for your repository.

    git push origin master # github
    git push heroku master 
    

    So I would recommend you use heroku as webhost and github as version control

    There is nothing wrong with using Heroku as your main Git repository. I have dozens of projects that are set up this way.

    Heroku is definitely not going to arbitrarily delete code or commits in your repository.

    Of course, anything you push to the master branch will actually be deployed, but you are free to push other branches if you want (Heroku will simply ignore those).

    The advantage of using GitHub in addition to Heroku is that you get a bunch of extra functionality on top of just the bare Git repository, such as a web-based UI and collaboration tools like pull requests, etc. Keep in mind that GitHub for private repositories is a paid service, however. There are also competitors to GitHub such as Bitbucket which offers private repositories for free for small teams.

    But if you are already familiar with Git and don’t feel like you need any extra functionality on top of it, you might as well just go with Heroku. There’s something to be said for simplicity, as well.

    Git Baby is a git and github fan, let's start git clone.