# Day 4: GitHub & Branching

* **Learn**: Pull requests, merge conflicts, Gitflow.
* **Task**: Create branches (user, product, order, recommend) for each microservice. Commit a README.

1. Create branches

```git
cd /opt/ecomm
git checkout -b user
git checkout -b product
git checkout -b order
git checkout -b recommend
git checkout main
```

2. push Branches

```
git push origin user
git push origin product
git push origin order
git push origin recommend
```

3. Test Branching

```
git checkout user
echo "User Service" > user-service/README.md
git add user-service/README.md
git commit -m "Add User Service README"
git push origin user
```

4. created pull request in github & merge into the main repository

<figure><img src="/files/4esItH1p2FSMv47Mb8Hm" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://charan-techjourney.gitbook.io/charan-techjournal/50-days-of-devops-ecommerce-microservices/project-daily-tasks/day-4-github-and-branching.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
