> 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="https://content.gitbook.com/content/C1tv1gDCmQOVxTprzQP4/blobs/XgH3AOij6WFI2zksYBxT/image.png" alt=""><figcaption></figcaption></figure>

Checking on GitHub, my branch is there.

<figure><img src="https://content.gitbook.com/content/C1tv1gDCmQOVxTprzQP4/blobs/zo5eMMLvHRs4G4ub3hcr/image.png" 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="https://content.gitbook.com/content/C1tv1gDCmQOVxTprzQP4/blobs/7E6ndwDwWH21yAhMq3zk/image.png" alt=""><figcaption></figcaption></figure>

And I can verify this worked.

<figure><img src="https://content.gitbook.com/content/C1tv1gDCmQOVxTprzQP4/blobs/HriCLsuQg2nZMk4DeVtD/image.png" alt=""><figcaption></figcaption></figure>

Remember to tidy up!

<figure><img src="https://content.gitbook.com/content/C1tv1gDCmQOVxTprzQP4/blobs/xZyy6Drcy9VOLkfkAwXX/image.png" alt=""><figcaption></figcaption></figure>

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