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-feature
4. 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
develop
branch). - Finish the Release: Merge the release/
develop
branch 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
main
to address critical issues.
git checkout -b hotfix/1.0.1 main
- Finish the Hotfix: Merge the hotfix branch into both
main
anddevelop
, 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.1
Once 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 -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.