How does one recreate (merged) branch that was deleted from local and remote?

After merging a feature branch to development and then deleting the local and remote, I realized I forgot to merge this to the production branch.

When I try to checkout the final commit, I get a warning “Checking out this commit will create a detached HEAD, and you will no longer be on any branch..” so a little apprehensive on that action.

  • Azure Github deployement from private repository
  • How to view changes made by last pull to my local files in github?
  • Composer VCS Different Directory Name
  • How to ignore files ending with ~ in git?
  • fatal: unable to run 'git-svn'
  • How to run pip3+git from behind proxy with docker?
  • Are there steps to reproduce the feature branch so it can be merged to production?

  • Git : How to protect a directory
  • How to add other users(windows) to gitosis
  • Rubymine — Configuring remote SDK?
  • git-bisect, but for N repos
  • Git: How to “undo” a merge
  • Git, ignored files appear in every branch
  • One Solution collect form web for “How does one recreate (merged) branch that was deleted from local and remote?”

    You could recreate it in the aggregate through cherry picking.

    Create a new branch off of prod. Then cherry-pick the new feature commits from develop and merge that into production.

    To do the cherry pick (as mentioned in the comments), you can do one commit at a time with git cherry-pick <hash> or you can do a series of commits with git cherry-pick <startingHash>..<finishingHash>

    Git Baby is a git and github fan, let's start git clone.