> For the complete documentation index, see [llms.txt](https://johnoraw.gitbook.io/iac-version-control/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://johnoraw.gitbook.io/iac-version-control/github/larger-projects/merging-the-changes-from-my-local-machine-to-github.md).

# Merging the changes from my local machine to GitHub

I still have a branch called **dev** on my local machine that does not show on GitHub.&#x20;

I can **git checkout dev** to switch to that branch, but if I try to push, there is no upstream branch to push to. However, I can force this.

<figure><img src="/files/ksCJJOOttYara8LFVENI" alt=""><figcaption></figcaption></figure>

Checking on GitHub, my branch is there.

<figure><img src="/files/z32mY5JpwOCbN49Uly7t" alt=""><figcaption></figcaption></figure>

I can see the commits, but earlier I created an **initial\_pages** branch from **dev** and I did not merge it.

On my local machine, I switch to dev and merge **initial\_pages**.

<figure><img src="/files/IAcil3VhW0VsjBDTPi7b" alt=""><figcaption></figcaption></figure>

And I can verify this worked.

<figure><img src="/files/79y5eWmvUuV8mRBfSGML" alt=""><figcaption></figcaption></figure>

Remember to tidy up!

<figure><img src="/files/82698OcXgn9JwTAOg0Fj" alt=""><figcaption></figcaption></figure>

We didn’t sync this branch to GitHub, so that should be all traces gone.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://johnoraw.gitbook.io/iac-version-control/github/larger-projects/merging-the-changes-from-my-local-machine-to-github.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
