Skip to content

Instantly share code, notes, and snippets.

@jzntam
Last active March 19, 2017 02:02
Show Gist options
  • Save jzntam/7496e98cefddeca1a492 to your computer and use it in GitHub Desktop.
Save jzntam/7496e98cefddeca1a492 to your computer and use it in GitHub Desktop.
Git workflow for group project

Git workflow

SETUP

git clone <repo>
git checkout <your name -feature>

Periodically

git fetch
git checkout master
git pull                    ;update your master 
git checkout <feature-branch>    ;prepare for merge
git merge master               ;conflicts can happen now

Done

git push origin <branch>

create a pull request on github on the pull request youcan merge into master on github

Starting a new Feature

git fetch
git checkout master
git pull
git checkout -b <branch name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment