What is the difference between merge –squash and rebase?

Merge commits: retains all of the commits in your branch and interleaves them with commits on the base branch Merge Squash: retains the changes but omits the individual commits from history Rebase: This moves the entire feature branch to begin on the tip of the master branch, effectively incorporating all of the new commits in … Read more

What’s the difference between ‘git merge’ and ‘git rebase’?

Suppose originally there were 3 commits, A,B,C: Then developer Dan created commit D, and developer Ed created commit E: Obviously, this conflict should be resolved somehow. For this, there are 2 ways: MERGE: Both commits D and E are still here, but we create merge commit M that inherits changes from both D and E. … Read more

Merging dictionaries in C#

This partly depends on what you want to happen if you run into duplicates. For instance, you could do: var result = dictionaries.SelectMany(dict => dict) .ToDictionary(pair => pair.Key, pair => pair.Value); That will throw an exception if you get any duplicate keys. EDIT: If you use ToLookup then you’ll get a lookup which can have … Read more

The following untracked working tree files would be overwritten by merge, but I don’t care

The problem is that you are not tracking the files locally but identical files are tracked remotely so in order to “pull” your system would be forced to overwrite the local files which are not version controlled. Try running git add * git stash git pull This will track all files, remove all of your … Read more

Embedding DLLs in a compiled executable

I highly recommend to use Costura.Fody – by far the best and easiest way to embed resources in your assembly. It’s available as NuGet package. Install-Package Costura.Fody After adding it to the project, it will automatically embed all references that are copied to the output directory into your main assembly. You might want to clean … Read more

Pandas Merging 101

This post aims to give readers a primer on SQL-flavored merging with Pandas, how to use it, and when not to use it. In particular, here’s what this post will go through: The basics – types of joins (LEFT, RIGHT, OUTER, INNER) merging with different column names merging with multiple columns avoiding duplicate merge key … Read more

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