tagged [git-merge]

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

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

Git merge develop into feature branch outputs "Already up-to-date" while it's not

Git merge develop into feature branch outputs "Already up-to-date" while it's not I checked out a feature branch from develop called `branch-x`. After a while other people pushed changes to the develo...

24 Jul at 10:30

How to cherry-pick a range of commits and merge them into another branch?

How to cherry-pick a range of commits and merge them into another branch? I have the following repository layout: - - - What I want to achieve is to cherry-pick a range of commits from the working bra...

23 Aug at 08:31

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 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

Git merge error "commit is not possible because you have unmerged files"

Git merge error "commit is not possible because you have unmerged files" I forgot to `git pull` my code before editing it; when I committed the new code and tried to push, I got the error "push is not...

24 Oct at 16:36

How to update my working Git branch from another branch (develop)?

How to update my working Git branch from another branch (develop)? I made a new branch called `feature1` from the main `develop` branch a month ago. I've been working on `feature1` for a month now and...

12 Apr at 20:37

Git: How to pull a single file from a server repository in Git?

Git: How to pull a single file from a server repository in Git? I am working on a site with a server running Git. I am using Git for deployment (not GitHub). This was set up prior to my involvement us...

9 Oct at 14:23

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