This repository is used for training purposes about Gitflow workflow.
| Branch | Environment | URL |
|---|---|---|
develop |
Staging | https://develop.bootcamp-git-gitflow.pages.dev |
main |
Production | https://bootcamp-git-gitflow.pages.dev |
- Start a New Feature: Create a new feature branch from
develop.
git checkout -b feat/my-feature- Work on the Feature: Make changes, commit them to the feature branch.
- Finish the Feature: Once the feature is complete, merge it back into
develop.
git checkout develop
git merge --no-ff feature/my-feature4. Start a Release: Create a release branch from develop.
git checkout -b release/1.0.0 develop- Test and Finalize the Release: Perform final testing, bug fixing, and version bumping on the release branch (or
developbranch). - Finish the Release: Merge the release/
developbranch into bothmain(anddevelop), and tag it with a version number.
git checkout main
git merge --no-ff release/1.0.0
git tag -a 1.0.0
git checkout develop
git merge --no-ff release/1.0.0- Start a Hotfix (if necessary): Create a hotfix branch from
mainto address critical issues.
git checkout -b hotfix/1.0.1 main- Finish the Hotfix: Merge the hotfix branch into both
mainanddevelop, and tag it with a new version number.
git checkout main
git merge --no-ff hotfix/1.0.1
git tag -a 1.0.1
git checkout develop
git merge --no-ff hotfix/1.0.1Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of your app:
npm run buildYou can preview the production build with npm run preview.