Git & GitHub Branches - Master & Staging

Lesson from CleanAgents Project.

I deployed a branch from Staging. It broke everything.

I was so confused. Wasn't Staging the default branch on GitHub?

Yes. It was. But it WASN'T the branch that was deployed last. (By Capistrano).

Lesson: Always check either the REVISION file on the server (by SSH'ing in) or the Git Log on the server, to see the last commits, and which branch they were from. (AND also ASK which branch is the one being used). Do NOT just assume that because one branch is behind in commits it is the right one.

| Back