To create a new branch in your repository, follow these steps:
-
Mark the Repository as Safe
If you encounter an error related to repository ownership, you can mark the directory as safe using the following command:
git config --global --add safe.directory "path/to/repo"Replace
path/to/repowith the actual path to your repository. -
Create and Switch to a New Branch
Once the repository is marked as safe, you can create a new branch and switch to it using:
git checkout -b <name-of-branch>
Replace
<name-of-branch>with the desired name for your new branch.
git config --global --add safe.directory "C:/Users/user/my-project"
git checkout -b feature/new-featureIn this example, the repository located at C:/Users/user/my-project is marked as safe, and a new branch named feature/new-feature is created and checked out.
To start the project in the /frontend folder, follow these steps:
-
Install all dependencies:
npm i
-
Install development dependencies:
npm i -D
-
Start the project:
npm start
Happy coding!