Skip to content

Instantly share code, notes, and snippets.

@MattStypa
Created October 12, 2018 14:35
Show Gist options
  • Save MattStypa/92d471335d341eeb2ff35fd798b55c85 to your computer and use it in GitHub Desktop.
Save MattStypa/92d471335d341eeb2ff35fd798b55c85 to your computer and use it in GitHub Desktop.
# Checkout master
git checkout master
# Make sure we are up to date
git pull
# Create new feature branch
git checkout -b {new_branch_name}
# Merge our work to the new branch
git merge {wip_branch_name}
# Reset our new branch
git reset origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment