Skip to content

Instantly share code, notes, and snippets.

@rapala61
Last active December 10, 2016 04:00
Show Gist options
  • Save rapala61/e8f408d74ccc5076bd2cc1556a4f2eef to your computer and use it in GitHub Desktop.
Save rapala61/e8f408d74ccc5076bd2cc1556a4f2eef to your computer and use it in GitHub Desktop.

GitHub team organization

Pick a member of the team as the responsible party to manage the organization. For now I'll refer to him as the GitHub Lead.

Create an organization

  • Github Lead responsibility
  • The organization name has to be unique in github

Add team members as organization members

Create repo for the project

  • Github Lead responsibility

Fork and clone

  • Fork the project's repo from the organization.
  • Clone the forked version to your development environment.

Work in branches

  • Each feature of the app should be developed in a separate branch.

Follow the Pull workflow

Sync development with upstream

Finally, Merge pull requests

  • Github Lead responsibility

Merge conflicts

  • Let's see whats going on with Git right now! git status
  • You should see a message that says "You have unmerged paths", followed by a list of files in red. These are files with merge conflicts.

A (Easy)

  • Conflicts will look like this in the file that has a merge conflict.
  • You are presented with both conflicting versions:
<<<<<<<master
<p><q>They call me MR. PIG. AAAAAH!</q> - Pumba</p>
========
<p><q>What do you want me to do, dress in drag and do the hula?</q> - Timon</p>
>>>>>>>HEAD
  • Keep one and make sure all <<<, ====, >>>> merge conflict delimiters are removed before saving and commiting.

B (Hard)

  • If the merge conflict is too bad (SEVERAL files displaying merge conflicts). It's usually a sign of something else going wrong.
  • First: You can abort the merge by running the command:
    • git merge --abort
  • If that doesn't work:
    • Do not ignore, or otherwise keep working on your files at this point.
    • Reach out to the Git Lead.
    • If all else fails, create an issue to get support.

Reading

guide to contribute to GH project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment