Skip to content

Git Workflow

Nuno Gomes edited this page May 30, 2019 · 6 revisions

Part #1a

  1. graasp new;
  2. Follow directions in prompt;
  3. Change (cd) to directory that was created;
  4. Create repo in GitHub with same name as directory;
  5. Add URL of repository to local repo: git remote add origin <url>;
  6. git push –u origin master.

Part #1b

  1. Create develop branch:
gco –b develop
git push –u origin develop

Part #2

  1. Create issue;
  2. Branch from develop to issue feature branch: gco –b #/<issue>-<desc>;
  3. Make changes;
  4. Commit using conventional format, e.g.,
feat: my new feature
Add something new
closes#3
  1. Push to feature branch: git push –u origin 3/update-readme.
  2. Repeat 3-5 as necessary.
  3. Create pull request (PR) from feature branch to develop;
  4. Request review;
  5. Merge PR to develop;
  6. Delete branch remotely;
  7. Checkout develop and update:
gco develop
git pull origin develop
  1. Delete local feature branch, e.g., git branch –d 3/update-readme.
  2. Repeat 1-11 as necessary.
  3. Create PR to master from develop;
  4. Request review;
  5. Merge PR to master;
  6. Checkout master and update:
gco master
git pull origin master
  1. If first release, run yarn release --first-release, otherwise just yarn release.
  2. Follow instructions to push tag: git push –follow-tags origin master;
  3. Checkout develop: gco develop;
  4. Merge master: git merge master;
  5. Update develop remotely: git push origin develop.
  6. Repeat 1-21 as necessary.
Clone this wiki locally