Merging multiple branches with git

git checkout master git pull origin feature1 feature2 git checkout develop git pull . master (or maybe git rebase ./master) The first command changes your current branch to master. The second command pulls in changes from the remote feature1 and feature2 branches. This is an “octopus” merge because it merges more than 2 branches. You … Read more

Stuck in a git rebase … how to reset

To escape from corrupted git rebase you can do the following Reset to a known state. You can find out from which commit you started your rebase with git reflog. For example, reflog will give you the following. The rebase starting point is the last rebase (start) or rebase -i (start) if you did an … Read more

In Mercurial what’s the difference between hg graft and hg rebase

hg graft allows “cherry-picking,” as you noted in your question. For example, you can run hg graft -D “2085::2093 and not 2091” to copy only some changes from another revision. By comparison, hg rebase (with or without –keep) will grab whatever changeset you specify and all of its decendant changes. Also, rebase allows you to … Read more

Git rebase with renamed files

You can rebase your branch while detecting renames like so: git rebase –strategy-option=”rename-threshold=10″ master Edit: Since Git 2.8.0, the term ‘rename-threshold’ has been deprecated in favor of ‘find-renames’. At the moment I’m using Git 2.7.4, and so I could only actually verify that the above command worked in my case — you may need to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)