-
Notifications
You must be signed in to change notification settings - Fork 0
Git Workflow
Nuno Gomes edited this page May 30, 2019
·
6 revisions
-
graasp new
; - Follow directions in prompt;
- Change (
cd
) to directory that was created; - Create repo in GitHub with same name as directory;
- Add URL of repository to local repo:
git remote add origin <url>
; -
git push –u origin master
.
- Create develop branch:
gco –b develop
git push –u origin develop
- Create issue;
- Branch from develop to issue feature branch:
gco –b #/<issue>-<desc>
; - Make changes;
- Commit using conventional format, e.g.,
feat: my new feature
Add something new
closes#3
- Push to feature branch:
git push –u origin 3/update-readme
. - Repeat 3-5 as necessary.
- Create pull request (PR) from feature branch to develop;
- Request review;
- Merge PR to develop;
- Delete branch remotely;
- Checkout develop and update:
gco develop
git pull origin develop
- Delete local feature branch, e.g.,
git branch –d 3/update-readme
. - Repeat 1-11 as necessary.
- Create PR to master from develop;
- Request review;
- Merge PR to master;
- Checkout master and update:
gco master
git pull origin master
- If first release, run
yarn release --first-release
, otherwise justyarn release
. - Follow instructions to push tag:
git push –follow-tags origin master
; - Checkout develop:
gco develop
; - Merge master:
git merge master
; - Update develop remotely:
git push origin develop
. - Repeat 1-21 as necessary.