Quick start
First clone the repo
then install dependencies
How to use git
To create a new branch
Work on the Branch
- Make changes to the code as needed.
- Stage the changes you want to commit
- Alternatively, stage all changes:
Commit Your Changes
- To commit the staged changes
- Make sure the commit message is clear and explains what the changes do.
Push the Branch to the Remote Repository
Sync Your Branch with the Main Branch (Rebase)
-
Before merging your branch, make sure to update your branch with the latest changes from the main branch:
-
Switch to the main branch:
- Pull the latest changes:
- Switch back to your branch:
- Rebase your branch onto the latest main branch:
- Resolve any merge conflicts that arise during the rebase
Merge Your Branch to the Main Branch
- After a successful rebase, switch to the main branch:
- Merge your branch into the main branch:
After a succsefull merge push the changes
If you want to checkout another branch whith uncommited changes
NB: This will discard your local changes