Clone the development branch of the repository using the following command:
git clone --branch dev https://github.com/VeriTrust/veritrust-backend.git
git clone --branch dev https://github.com/VeriTrust/veritrust-frontend.gitAfter cloning, ensure your local repository is up to date:
git pull origin devModify the necessary files according to your requirements.
Run the following command to check the status of your changes:
git status- If changes appear in red, they are unstaged.
git add .Check the status again to ensure changes are staged:
git status- If changes appear in green, they are staged.
Commit your changes using the following syntax:
git commit -m "<type>: <description>"Note:
<type>should be lowercase to follow conventional commit standards.
- feat → Introduces a new feature
- fix → Fixes a bug
- docs → Changes in documentation only
Single-line commit:
git commit -m "feat: added profile section"Multi-line commit with description:
git commit -m "feat: added profile section
- increased font size
- made footer bigger
- etc etc"Read more: Conventional Commits
Before pushing your changes, ensure you have the latest updates to avoid conflicts:
git pull origin dev --rebaseThen, push your changes:
git push origin devIf someone else has made changes to the same files, use:
git pull --rebase --autostashIf you mistakenly staged files with git add ., unstage them using:
git reset .If you made too many incorrect changes and want to discard them:
git restore .