Warning
Please do not develop features in main branch!
Please install dependencies/library under client orserver folder you are working on.
- Clone a repository in your local folder (whereever you want)
git clone URL
-
Check branches
git branch
-
Switch branch to "main"
git checkout main
-
Pull latest changes into your local "main" repository
git pull origin main
Note
you should install dependencies every time in case someone add a new dependency.
Do "npm install" under client and server folders.
e.g. ~/ConnectHub/client npm install and ~/ConnectHub/server npm install
-
Create a new branch
git checkout -b NEW_BRANCH_NAME
-
Switch branches
git checkout BRANCH_NAME
-
Development
Please develop the feature.
-
Check status
git status
-
Add changes
git add .
-
Commit changes
git commit -m "Your descriptive commit message here"
-
Push changes to the remote branch
git push origin BRANCH_NAME
-
Go to the Github page -> Switch branch to your working branch -> Go to Pull Requests
-
Make a pull request (by clicking "Compare & pull requests") -> Write descriptions and Click "Create pull request"
-
Click "Merge pull request" -> Confirm merge -> Delete your branch