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...
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 "...
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...
- Modified
- 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...
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...
- Modified
- 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...
- Modified
- 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...
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...
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...
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 ...
- Modified
- 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...
- Modified
- 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...