About 50 results
Open links in new tab
  1. How do I safely merge a Git branch into master? - Stack Overflow

    3739 How I would do this git checkout master git pull origin master git merge test git push origin master If I have a local branch from a remote one, I don't feel comfortable with merging other branches than …

  2. How do I resolve merge conflicts in a Git repository?

    Before pushing your newly committed change to remote server, try git pull --rebase rather git pull and manual merge and it will automatically sync the latest remote server changes (with a fetch + merge) …

  3. merge - Merging 2 branches together in Git - Stack Overflow

    Now if you want to merge feature_branch changes to master, Do git merge feature_branch sitting on the master. This will add all commits into master branch (4 in master + 2 in feature_branch = total 6) + an …

  4. What's the difference between 'git merge' and 'git rebase'?

    May 21, 2013 · In other words, the key difference between merge and rebase is that while merge preserves history as it happened, rebase rewrites it. Let's contextualize these statements with a side …

  5. What effect does the `--no-ff` flag have for `git merge`?

    Jan 30, 2012 · The --no-ff flag prevents git merge from executing a "fast-forward" if it detects that your current HEAD is an ancestor of the commit you're trying to merge. A fast-forward is when, instead of …

  6. What is `git merge` doing? - Stack Overflow

    The git-merge man page and the git-merge-base man pages that you point out discuss multiple common ancestors and recursive merge. I feel that your answer is incomplete without a discussion of such.

  7. How to "git merge" without creating a merge commit?

    Is it possible to do a git merge, but without a commit? "man git merge" says this: With --no-commit perform the merge but pretend the merge failed and do not autocommit, to give the user a chance...

  8. Is there a difference between git rebase and git merge --ff-only

    Jan 25, 2015 · But merge --ff-only works only in scenarios where it can be fast forwarded. I also noticed, git merge creates a merge commit, but if we use --ff-only, it gives a linear history which essentially is …

  9. How can I selectively merge or pick changes from another branch in Git ...

    git merge --no-commit followed by manual unstaging of a large number of edits that I don't want to make common between the branches. Manual copying of common files into a temporary directory followed …

  10. How to merge a specific commit in Git - Stack Overflow

    git commit -m "Merge in commit 823749a from B which tweaked the timeout code" Now you have only the change you wanted, and the ancestry tree shows that you technically merged from B.