Using Xcode to merge current branch into Master

Is there a quick way to merge the current working branch into the master branch using Xcode? I’m not clear on what the ‘Merge’ menu option is doing exactly (it’s not exactly labelled clearly), but it seems like it is merging whichever branch you select into your current branch – I guess this is useful when you want to test your changes with the latest codebase from someone else.

When I finish a feature, I would like to merge it in to the master and then continue working on another feature. It seems like I have to switch to the master branch, merge from there, then make another branch from master and work on feature #2 in that one.

  • How can I use “git describe --match” sensibly in combination with a shallow clone?
  • How do I get changes from my trunk into a branch?
  • How to remove a dangling commit from GitHub?
  • Why can't Git Bash run my executable?
  • Is it possible to remove a remote repository on Github through the command line?
  • Choosing a source control system: logical next steps after VSS
  • Do I have it correct?

  • Maven release:prepare-with-pom removes release-pom then tries to add it?
  • Why don't Git refs have a file extension
  • Git says local branch is behind remote branch, but it's not
  • Separate Git Repos for frontend and backend web development
  • What is the difference between 'git pull' and 'git fetch'?
  • Git clean not removing a file
  • 2 Solutions collect form web for “Using Xcode to merge current branch into Master”

    Yes, that is correct. The “merge” operation in Git takes another branch and merges it into your current branch.

    What you are describing (creating a branch for each feature, and merging them into master as you go) is generally referred to as the “feature branch” workflow, and it is a very common one.

    To use Xcode to merge the current branch into another branch (for example, the develop branch into the master branch), go to Source Control > Your project name and branch > Merge into Branch….

    enter image description here

    Then just select the branch that you want to merge it into.

    enter image description here

    You can view the changes and then make the merge. This is a local repository change. You can go to Source Control > Push to push the merge to your remote repository.

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