Configure your GitHub username and email:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Note: Take the latest pull request from the master before push to the repository:
# git status and git checkout are optional and do to check what you are pushing and adding a custom branch respectively.
# git pull must be taken if there is code existing in the branch where you are pushing
git init
git add .
git status
git commit -m "Initial commit"
git checkout -b <custom_name_of_your_branch>
git remote add origin <repository_url>
git push -u origin <branch_name>
git pull <branch_name>
To run your Node.js project, follow these steps:
-
Install Dependencies: Open a terminal or command prompt, navigate to the project directory, and run:
npm install
-
Start the Application:
npm start
-
If the port is already in use:
PORT=4000 npm start
4.Pay attention to security warnings during dependency installation:
npm audit fix