Short, copy-pasteable steps to get started and avoid merge conflicts.
- Clone the repo
git clone https://github.com/RamiHsasna/EcoSolveit.git
cd EcoSolveit- Create a feature branch from the latest main
git checkout main
git pull origin main
git checkout -b feature/initials-short-desc- Work, commit often, push your branch
git add .
git commit -m "feature short description"
git push -u origin feature/initials-short-desc- Keep your branch up-to-date (rebase preferred)
git pull origin/main#Rami
- Merge branches into main
git checkout main
git pull origin main
git fetch origin
git branch -a
git merge origin/branch-name- Clean up after merge
git checkout main
git pull origin main
git branch -d feature/initials-short-desc
git push origin --delete feature/initials-short-descTips
- Branch names:
feature/initials-short-desc,fix/initials-short-desc. - Use Conventional Commits for messages:
feat:,fix:,chore:. - Keep branches small and rebase frequently to minimize conflicts.