Erik
Erik

Reputation: 483

Git workflow on Heroku

I am a "GIT newbie" as of starting with Heroku, and I'm interested in knowing what would be best practice in how to work with it.

As of now my site has one production environment and one staging environment.

However I'm only using the most basic GIT commands, i e:

git add .
git commit -m "some changes"
git push production master

for instance…

Lately though I've been reading about working with branches and I'm understanding that this is the way to go.

What I need help with though is understanding how to create a development branch, pushing it to either staging or production and if stuff goes bad reverting to my latest working branch.

Any help with code on this or links to tutorials would be greatly appreciated.

Cheers!

Upvotes: 2

Views: 400

Answers (4)

Adam Dymitruk
Adam Dymitruk

Reputation: 129744

These would be my first steps:

  1. google "git for computer scientists"
  2. Gitcasts.org
  3. gitready.com
  4. progit.org/book

Check here for instructions.

Be on the #git channel on IRC (http://webchat.freenode.net/)

I'm available on twitter under the same ID to help you as well :)

Upvotes: 2

tfe
tfe

Reputation: 35022

I found this article in particular to be very helpful in organizing my git repo for exactly this kind of situation:

http://nvie.com/posts/a-successful-git-branching-model/

Upvotes: 1

pageman
pageman

Reputation: 3022

you might want to check out the Git Cheat Sheet :)

Upvotes: 1

Mike Bethany
Mike Bethany

Reputation:

Railscasts has some good, if dated, videos on git as well. They were a nice icebreaker so I wasn't so intimidated by git.

Upvotes: 0

Related Questions