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

What is our git workflow? #37

Closed
clemens-tolboom opened this issue Jun 2, 2013 · 3 comments
Closed

What is our git workflow? #37

clemens-tolboom opened this issue Jun 2, 2013 · 3 comments

Comments

@clemens-tolboom
Copy link
Collaborator

After merging #22 not paying enough attention we need to make sure how to merge PRs.

I personally don't care about my commit messages but as I wrote in http://build2be.com/content/do-we-need-git-squash-and-thus-forced-pushes squashing is an ok workflow.

Cherry picking on the other hand is too much of a burden regarding PRs. Github provides a nice workflow regarding merging providing a 'delete branch' in the end.

So let's do the squash workflow:

  • evaluate all tasks from the issue
  • check the code
  • squash the branch
  • merge the PR
  • delete the branch

@clue what do you think?

@ghost ghost assigned clue Jun 2, 2013
@clue
Copy link
Member

clue commented Jun 2, 2013

In my opinion a messed up branch with lots of unrelated changes is a bad thing just as much as a squashed branch with only a single changeset.

So personally, I prefer a approach somewhere inbetween: The commit history is there for a reason and it should contain each independent changeset. This allows to later move, merge, rebase or cherry-pick changesets between branches and to more easily see what's actually going on.

Squashing may still be useful if the branch is cluttered with uninteresting/useless commits that can be grouped to a single changeset (like "remove A from B", "remove A from C", "remove A from D" could be squashed to a single "remove A from B,C and D" commit).

Other than that, your suggested workflow looks okay to me.

That being said, I always prefix incomplete PRs with a "[WIP]" (work-in-progress) marker to indicate they're not yet to be merged and still have some incomplete tasks. This has proven to be quite useful as it highlights the current working tasks and encourages input to the current stage.

@clue
Copy link
Member

clue commented Sep 10, 2013

I think this can safely be closed now.

If you feel there's still need for any discussion, just re-open this ticket or file a new one.

@clue clue closed this as completed Sep 10, 2013
@clemens-tolboom
Copy link
Collaborator Author

Thanks.

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

2 participants