tagged [git-merge]

Merge development branch with master

Merge development branch with master I have two branches namely `master` and `development` in a GitHub Repository. I am doing all my development in development branch as shown. Now I want to merge all...

9 May at 09:5

What is the precise meaning of "ours" and "theirs" in git?

What is the precise meaning of "ours" and "theirs" in git? This might sound like too basic of a question, but I have searched for answers and I am more confused now than before. What does "ours" and "...

29 Jul at 09:11

How do you merge two Git repositories?

How do you merge two Git repositories? Consider the following scenario: I have developed a small experimental project A in its own Git repo. It has now matured, and I'd like A to be part of larger pro...

17 Feb at 20:38

git stash -> merge stashed change with current changes

git stash -> merge stashed change with current changes I made some changes to my branch and realized I forgot I had stashed some other necessary changes to said branch. What I want is a way to merge m...

24 Jun at 12:33

Choose Git merge strategy for specific files ("ours", "mine", "theirs")

Choose Git merge strategy for specific files ("ours", "mine", "theirs") I am in the middle of rebasing after a `git pull --rebase`. I have a few files that have merge conflicts. How can I accept "thei...

2 Aug at 00:24

Merge, update, and pull Git branches without using checkouts

Merge, update, and pull Git branches without using checkouts I work on a project that has 2 branches, A and B. I typically work on branch A, and merge stuff from branch B. For the merging, I would typ...

28 Jul at 05:5

Git merge reports "Already up-to-date" though there is a difference

Git merge reports "Already up-to-date" though there is a difference I have a git repository with 2 branches: master and test. There are differences between master and test branches. Both branches have...

9 Aug at 08:38

How can I combine two commits into one commit?

How can I combine two commits into one commit? I have a branch 'firstproject' with 2 commits. I want to get rid of these commits and make them appear as a single commit. The command `git merge --squas...

21 Sep at 02:27

When would you use the different git merge strategies?

When would you use the different git merge strategies? From the man page on git-merge, there are a number of merge strategies you can use. - - This can only resolve two heads (i.e. the current branch...

2 Sep at 06:4

How can I preview a merge in git?

How can I preview a merge in git? I have a git branch (the mainline, for example) and I want to merge in another development branch. Or do I? In order to decide whether I really want to merge this bra...

29 Aug at 15:56

How do you rebase the current branch's changes on top of changes being merged in?

How do you rebase the current branch's changes on top of changes being merged in? Okay. If I'm on a branch (say `working`), and I want to merge in the changes from another branch (say `master`), then ...

4 Sep at 04:14

Git Cherry-pick vs Merge Workflow

Git Cherry-pick vs Merge Workflow Assuming I am the maintainer of a repo, and I want to pull in changes from a contributor, there are a few possible workflows: 1. I cherry-pick each commit from the re...

6 Aug at 21:50

Simple tool to 'accept theirs' or 'accept mine' on a whole file using git

Simple tool to 'accept theirs' or 'accept mine' on a whole file using git I don't want a visual merge tool, and I also don't want to have to vi the conflicted file and manually choose the between HEAD...

27 May at 19:41