gemvcnte / sims

2 stars 0 forks source link

Branching

Switching Branches

To switch to a different branch, open your terminal and use the following command:

git checkout branch-name

Pulling Changes

Before pushing new code, it's essential to pull changes from the remote repository. Use the following commands:

Use rebase as reconciliation strategy:

git config pull.rebase true

After configuring the strategy, run the following command to pull the changes:

git pull origin branch-name

Pushing Changes

After making changes, commit and push them to the remote repository. Follow these steps:

Add the changes:

git add .

Commit the changes:

git commit -m "Your commit message"

Push the changes to the remote repository:

git push

Server

Using Server

git checkout server

Then delete the node_modules folder

npm i

Add the .env file

Run start

npm start