You can use your preferred git workflow but i'll recommend using worktrees.
Here's a quick guide on how to contribute using worktrees :
mkdir ./moviematcherdotcom &&
cd ./moviematcherdotcom
You only need to do this the first time
# Clone your fork
git clone git@github.com:[YOURUSERNAME]/moviematcher.com.git &&
cd ./moviematcher.com
# Creates a worktree outside the main branch and a new branch
git worktree add ../feature-header -b feat/header# in main
cd ../feature-header
# ... code ...
git add .
git commit -m "feat: header"
git push -u origin feat/header
# → PR on GitHub# 1. Merge on github
# 2. Update main
cd ../main
git pull
# 3. Delete the worktree and local branch
git worktree remove ../feature-header
git branch -d feat/headerAfter you've finished and tested your awesome feature, you can submit your pull request by creating a new one on the original repository.
You can now start working and submitting your branches !
For better naming of your branches, please use the following prefixes :
- feat/ (for features)
- fix/ (for fixes)
- docs/ (when updating documentation)
- ui/ (for ui/ux changes)
