IAC - Version Control
GITHUB
GITHUB
  • Background
  • Setting up GitHub
  • Windows
    • Working with a cloned repo
    • Populating a repo from local files
    • Integrate VSCode
  • Linux
    • Using SSH
    • GH Command Line
  • The Basics
    • Forks
    • Logs
    • Undoing Local Changes
  • Larger Projects
    • Setting up a repo
    • Creating my Branch Architecture Locally
    • Creating a Feature Branch
    • Creating my Branch Architecture on GitHub
    • Merging the changes from GitHub on my local machine
    • Merging the changes from my local machine to GitHub
    • Sync the branches in GitHub
  • Finally
Powered by GitBook
On this page
  1. Larger Projects

Merging the changes from my local machine to GitHub

PreviousMerging the changes from GitHub on my local machineNextSync the branches in GitHub

I still have a branch called dev on my local machine that does not show on GitHub.

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.

Checking on GitHub, my branch is there.

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.

And I can verify this worked.

Remember to tidy up!

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