Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tooinfinity/26ffbdbb37689acbe3e74ca4c7aafedb to your computer and use it in GitHub Desktop.
Save tooinfinity/26ffbdbb37689acbe3e74ca4c7aafedb to your computer and use it in GitHub Desktop.
It's a set of scripts he created for that workflow.
But to answer your question:
$ git checkout -b myFeature dev
Creates MyFeature branch off dev. Do your work and then
$ git commit -am "Your message"
Now merge your changes to dev without a fast-forward
$ git checkout dev
$ git merge --no-ff myFeature
Now push changes to the server
$ git push origin dev
$ git push origin myFeature
And you'll see it how you want it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment