Skip to content

Instantly share code, notes, and snippets.

@boseoladipo
boseoladipo / git-collaborative-workflow.md
Last active December 10, 2021 01:40 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project.

How we collaborate

We collaborate using the Github Flow method, as described below;

  • Anything in the master branch is deployable
  • To work on something new, create a descriptively named branch off of master (ie: new-oauth2-scopes)
  • Commit to that branch locally and regularly push your work to the same named branch on the server
  • When you need feedback or help, or you think the branch is ready for merging, open a pull request
  • After someone else has reviewed and signed off on the feature, you can merge it into master
@boseoladipo
boseoladipo / git-pushing-multiple.rst
Created April 28, 2021 09:59 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just