Merge 2 branches in git ignoring branch in between?

I want to merge a branch into another branch selectively & then merge another branch ignoring 1 branch in between. How do I do this with Git? I am using Git Extensions for visual studio.
enter image description here

  • git: push only specific tags
  • Deleting merged branch gives "error: The branch X is not fully merged…'
  • git change all history for committers names and email for specific committer
  • git .ignore not working in a directory
  • git status doesn't show the number of non-pushed commits anymore
  • How to add a file to the first commit on a git repo?
  • Does Git somehow stores the list of child commits efficiently
  • How can one dry run a git push to check whether one has write permissions to a remote?
  • How to configure 'git diff' to use emacs diff
  • git finding unmerged branches
  • git diff shows difference after git pull from a branch
  • GITFLOW Linux Installation Issue
  • One Solution collect form web for “Merge 2 branches in git ignoring branch in between?”

    In git you do not really merge branches. You merge two commits by adding a new merge commit. The new merge commit has those two commits as parents and contains the merge result.

    If I understand your question correctly you want to merge the two circled commits, which are currently referred to by Logout_IdleUser and Various_Fix.

    In this case you might want to do:

    git checkout Logout_IdleUser
    git merge Various_Fix

    This would merge both circled commits by creating a merge commit. It will also move Logout_IdleUser to point to the new merge commit.

    If you want a different result, please describe you intended final situation more precisely.

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